diff --git a/specification/billingbenefits/BillingBenefits.Management/ConditionalCredit.tsp b/specification/billingbenefits/BillingBenefits.Management/ConditionalCredit.tsp new file mode 100644 index 000000000000..f8101922b2ab --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/ConditionalCredit.tsp @@ -0,0 +1,88 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; +using TypeSpec.Versioning; + +namespace Microsoft.BillingBenefits; +/** + * Resource definition for Conditional Credits. + */ +@added(Versions.v2025_05_01_preview) +model ConditionalCredit + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = ConditionalCredit, + KeyName = "conditionalCreditName", + SegmentName = "conditionalCredits", + NamePattern = "^[a-zA-Z0-9_\\-\\.]+$" + >; +} + +@armResourceOperations +@added(Versions.v2025_05_01_preview) +interface ConditionalCredits { + /** + * Get a conditional credit. + */ + get is ArmResourceRead; + + /** + * Create or update a conditional credit. + */ + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + /** + * Update a conditional credit. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + ConditionalCredit, + PatchModel = ConditionalCreditPatchRequest, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; + + /** + * Delete a conditional credit. + */ + delete is ArmResourceDeleteWithoutOkAsync< + ConditionalCredit, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; + + /** + * List conditional credits by resource group. + */ + listByResourceGroup is ArmResourceListByParent< + ConditionalCredit, + Response = ArmResponse + >; + + /** + * List conditional credits by subscription. + */ + listBySubscription is ArmListBySubscription< + ConditionalCredit, + Response = ArmResponse + >; +} + +@@doc(ConditionalCredit.name, "Name of the conditional credit"); +@@doc(ConditionalCredit.properties, "Conditional credit properties"); +@@doc(ConditionalCredits.createOrUpdate::parameters.resource, + "Request body for creating a conditional credit" +); +@@doc(ConditionalCredits.update::parameters.properties, + "Request body for updating a conditional credit" +); diff --git a/specification/billingbenefits/BillingBenefits.Management/Contributor.tsp b/specification/billingbenefits/BillingBenefits.Management/Contributor.tsp new file mode 100644 index 000000000000..8f43004aeeff --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/Contributor.tsp @@ -0,0 +1,50 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "./models.tsp"; +import "./Macc.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; +using TypeSpec.Versioning; + +namespace Microsoft.BillingBenefits; +/** + * MACC contributor + */ +@added(Versions.v2025_05_01_preview) +@parentResource(Macc) +model Contributor is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = Contributor, + KeyName = "contributorName", + SegmentName = "contributors", + NamePattern = "^[a-zA-Z0-9_\\-\\.]+$" + >; +} + +@added(Versions.v2025_05_01_preview) +@armResourceOperations +interface Contributors { + /** + * Get a contributor for primary service admin + */ + getFromPrimary is ArmResourceRead; + + /** + * List contributors under a MACC for primary service admin + */ + listFromPrimary is ArmResourceListByParent< + Contributor, + Response = ArmResponse + >; +} + +@@doc(Contributor.name, + "Unique name of contributor in the format {contributorCloudSubId}_{resourceGroupName}_{nameInContributorTenant}." +); +@@doc(Contributor.properties, "MACC contributor properties"); diff --git a/specification/billingbenefits/BillingBenefits.Management/Credit.tsp b/specification/billingbenefits/BillingBenefits.Management/Credit.tsp new file mode 100644 index 000000000000..5458a1867bb6 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/Credit.tsp @@ -0,0 +1,83 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; +using TypeSpec.Versioning; + +namespace Microsoft.BillingBenefits; +/** + * Credit resource definition + */ +@added(Versions.v2025_05_01_preview) +model Credit is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Credit, + KeyName = "creditName", + SegmentName = "credits", + NamePattern = "^[a-zA-Z0-9_\\-\\.]+$" + >; +} + +@armResourceOperations +@added(Versions.v2025_05_01_preview) +interface Credits { + /** + * Get a credit. + */ + get is ArmResourceRead; + + /** + * Create a credit. + */ + create is ArmResourceCreateOrReplaceAsync; + + /** + * Update a credit. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + Credit, + PatchModel = CreditPatchRequest, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; + + /** + * Delete a credit. + */ + delete is ArmResourceDeleteWithoutOkAsync; + + /** + * List Credits under a resource group from primary service admin. + */ + listByResourceGroup is ArmResourceListByParent< + Credit, + Response = ArmResponse + >; + + /** + * List credits under a subscription from primary service tenant. + */ + listBySubscription is ArmListBySubscription< + Credit, + Response = ArmResponse + >; + + /** + * Cancels a credit. + */ + cancel is ArmResourceActionAsync>; +} + +@@doc(Credit.name, "Name of the credit"); +@@doc(Credit.properties, "Credit properties"); +@@doc(Credits.create::parameters.resource, "Credit create request"); +@@doc(Credits.update::parameters.properties, "Credit patch request"); diff --git a/specification/billingbenefits/BillingBenefits.Management/CreditSource.tsp b/specification/billingbenefits/BillingBenefits.Management/CreditSource.tsp new file mode 100644 index 000000000000..def5ec2d9453 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/CreditSource.tsp @@ -0,0 +1,84 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "./models.tsp"; +import "./Credit.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; +using TypeSpec.Versioning; + +namespace Microsoft.BillingBenefits; +/** + * Credit source resource definition + */ +@added(Versions.v2025_05_01_preview) +@parentResource(Credit) +model CreditSource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = CreditSource, + KeyName = "sourceName", + SegmentName = "sources", + NamePattern = "^[a-zA-Z0-9_\\-\\.]+$" + >; +} + +@armResourceOperations +@added(Versions.v2025_05_01_preview) +interface CreditSources { + /** + * Get a credit source. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Sources_Get") + get is ArmResourceRead; + + /** + * Create a credit source. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Sources_Create") + create is ArmResourceCreateOrReplaceSync; + + /** + * Update a credit source. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("Sources_Update") + update is ArmCustomPatchSync< + CreditSource, + PatchModel = CreditSourcePatchRequest + >; + + /** + * Delete a credit source. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Sources_Delete") + delete is ArmResourceDeleteSync; + + /** + * List credit sources for a credit under a resource group from primary service admin. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Sources_ListByCredit") + listByCredit is ArmResourceListByParent< + CreditSource, + Response = ArmResponse + >; +} + +@@doc(CreditSource.name, "Name of the credit source"); +@@doc(CreditSource.properties, "Credit source properties"); +@@doc(CreditSources.create::parameters.resource, + "Credit source create request" +); +@@doc(CreditSources.update::parameters.properties, + "Credit source patch request" +); diff --git a/specification/billingbenefits/BillingBenefits.Management/Macc.tsp b/specification/billingbenefits/BillingBenefits.Management/Macc.tsp new file mode 100644 index 000000000000..c7af55fd20c1 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/Macc.tsp @@ -0,0 +1,107 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; +using TypeSpec.Versioning; + +namespace Microsoft.BillingBenefits; +/** + * Microsoft Azure Consumption Commitment. + */ +@added(Versions.v2025_05_01_preview) +model Macc is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = Macc, + KeyName = "maccName", + SegmentName = "maccs", + NamePattern = "^[a-zA-Z0-9_\\-\\.]+$" + >; +} + +@added(Versions.v2025_05_01_preview) +@armResourceOperations +interface Maccs { + /** + * Get a MACC. + */ + get is ArmResourceRead; + + /** + * Create MACC. + */ + create is ArmResourceCreateOrReplaceAsync; + + /** + * Update MACC. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + Macc, + PatchModel = MaccPatchRequest, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; + + /** + * Delete MACC. + */ + delete is ArmResourceDeleteWithoutOkAsync< + Macc, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; + + /** + * List MACCs under a resource group for primary service admin. + */ + listByResourceGroup is ArmResourceListByParent< + Macc, + Response = ArmResponse + >; + + /** + * List MACCs under a subscription from primary service tenant. + */ + listBySubscription is ArmListBySubscription< + Macc, + Response = ArmResponse + >; + + /** + * Represents an operation to cancel MACC contract. This operation does not indicate deletion of the MACC, but rather stops applying the benefit to the account. + */ + cancel is ArmResourceActionAsync< + Macc, + void, + ArmResponse, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; + + /** + * Operation to waive a customer's pending MACC balance (Shortfall) from their account, ensuring they are not charged for the outstanding amount. + */ + writeOff is ArmResourceActionAsync< + Macc, + void, + ArmResponse, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader & + ArmLroLocationHeader + >; +} + +@@doc(Macc.name, "Name of primary MACC."); +@@doc(Macc.properties, "MACC properties"); +@@doc(Maccs.create::parameters.resource, "Request body for creating MACC."); +@@doc(Maccs.update::parameters.properties, "Request body for updating MACC."); diff --git a/specification/billingbenefits/BillingBenefits.Management/back-compatible.tsp b/specification/billingbenefits/BillingBenefits.Management/back-compatible.tsp index 692543c3e2a6..864a04ab9e78 100644 --- a/specification/billingbenefits/BillingBenefits.Management/back-compatible.tsp +++ b/specification/billingbenefits/BillingBenefits.Management/back-compatible.tsp @@ -7,6 +7,8 @@ using Microsoft.BillingBenefits; // All @operationId decorators have been removed and replaced with these client customizations @@clientLocation(SavingsPlanOperationGroup.listAll, "SavingsPlan"); +@@clientName(validatePurchase, "ValidatePurchase"); +@@clientLocation(BenefitOperationGroup.validate, "Benefit"); @@clientLocation(DiscountsOperationGroup.scopeList, Discounts); @@clientLocation(ReservationOrderAliasResponses.get, "ReservationOrderAlias"); @@clientLocation(ReservationOrderAliasResponses.create, @@ -23,6 +25,15 @@ using Microsoft.BillingBenefits; @@clientLocation(SavingsPlanOrderModels.elevate, "SavingsPlanOrder"); @@clientLocation(Discounts.get, "Discount"); @@clientLocation(Discounts.update, "Discount"); +@@clientLocation(ConditionalCreditsOperationGroup.scopeList, + ConditionalCredits +); +@@clientLocation(CreditsOperationGroup.listApplicable, Credits); +@@clientLocation(MaccsOperationGroup.list, "ApplicableMaccs"); +@@clientLocation(ContributorsOperationGroup.listFromApplicableMacc, + Contributors +); +@@clientLocation(SellerResourceOperationGroup.list, "SellerResource"); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @@Azure.ClientGenerator.Core.Legacy.flattenProperty(RoleAssignmentEntity.properties @@ -39,6 +50,28 @@ using Microsoft.BillingBenefits; @@Azure.ClientGenerator.Core.Legacy.flattenProperty(DiscountPatchRequest.properties ); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(MaccPatchRequest.properties +); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(SellerResourceListRequest.properties +); + +@@clientName(SellerResourceListRequestProperties.$filter, "filter"); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CreditPatchRequest.properties +); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(MaccValidateModel.properties +); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CreditsValidateModel.properties +); + @@clientName(SavingsPlanOrderAliasModels.create::parameters.resource, "body"); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @@Azure.ClientGenerator.Core.Legacy.flattenProperty(SavingsPlanOrderAliasModel.properties @@ -62,3 +95,15 @@ using Microsoft.BillingBenefits; @@clientName(Discounts.create::parameters.resource, "body"); @@clientName(Discounts.update::parameters.properties, "body"); + +@@clientName(Maccs.create::parameters.resource, "body"); +@@clientName(Maccs.update::parameters.properties, "body"); + +@@clientName(Credits.create::parameters.resource, "body"); +@@clientName(Credits.update::parameters.properties, "body"); + +@@clientName(CreditSources.create::parameters.resource, "body"); +@@clientName(CreditSources.update::parameters.properties, "body"); + +@@clientName(ConditionalCredits.createOrUpdate::parameters.resource, "body"); +@@clientName(ConditionalCredits.update::parameters.properties, "body"); diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableConditionalCreditList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableConditionalCreditList.json new file mode 100644 index 000000000000..295ef35d1b26 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableConditionalCreditList.json @@ -0,0 +1,132 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/{acctId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/applicableConditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/conditionalcredits/testprimaryconditionalcredit", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "conditionalCredit_20250802", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/applicableConditionalCredits/conditionalCredit_20250802", + "location": "global", + "properties": { + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/conditionalcredits/testprimaryconditionalcredit2", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250802", + "endAt": "2026-05-01T00:00:00Z", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q3 Milestone", + "endAt": "2026-02-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440003", + "spendTarget": { + "amount": 75000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc5", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250802" + }, + "systemData": { + "createdAt": "2025-09-02T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-02T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key3": "value3" + } + } + ] + } + } + }, + "operationId": "ConditionalCredits_ScopeList", + "title": "ConditionalCreditScopeList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableDiscountsList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableDiscountsList.json new file mode 100644 index 000000000000..f3c6c34d2b0b --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableDiscountsList.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/{acctId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "13810867107109237", + "type": "Microsoft.BillingBenefits/applicableDiscounts", + "id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/13810867107109237", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "63810867107109237", + "type": "Microsoft.BillingBenefits/applicableDiscounts", + "id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/63810867107109237", + "location": "global", + "properties": { + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "63810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Discounts_ScopeList", + "title": "DiscountScopeList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableMaccsList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableMaccsList.json new file mode 100644 index 000000000000..742128d02c25 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ApplicableMaccsList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "13810867107109237", + "type": "Microsoft.BillingBenefits/applicableMaccs", + "id": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/providers/Microsoft.BillingBenefits/applicableMaccs/13810867107109237", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "ApplicableMaccs_List", + "title": "DiscountScopeList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditCreateContributor.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditCreateContributor.json new file mode 100644 index 000000000000..fbad90b1c93a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditCreateContributor.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "displayName": "Contributor Conditional Credit 20250801", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "startAt": "2025-09-01T00:00:00Z", + "systemId": "CACO-SYSTEM-001" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + }, + "conditionalCreditName": "conditionalCredit_contributor_20250801", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_contributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_contributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Contributor Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q1 Milestone", + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Active" + }, + { + "name": "Q2 Milestone", + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-001" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + } + }, + "201": { + "body": { + "name": "conditionalCredit_contributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_contributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Contributor Conditional Credit 20250801", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "provisioningState": "Pending", + "startAt": "2025-09-01T00:00:00Z", + "status": "Pending", + "systemId": "CACO-SYSTEM-001" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/5f3gggg8-c442-5gdc-bc22-c6gb5a479299?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_CreateOrUpdate", + "title": "ConditionalCreditCreateContributor" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditCreatePrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditCreatePrimary.json new file mode 100644 index 000000000000..2e464c98bf12 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditCreatePrimary.json @@ -0,0 +1,221 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "allowContributors": "Enabled", + "displayName": "Conditional Credit 20250801", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "startAt": "2025-10-01T00:00:00Z" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + } + }, + { + "name": "Q2 Milestone", + "award": { + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "startAt": "2026-01-01T00:00:00Z" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + } + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2025-07-01T00:00:00Z", + "systemId": "CACO-SYSTEM-20250801" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Active" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2025-07-01T00:00:00Z", + "status": "Pending", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_CreateOrUpdate", + "title": "ConditionalCreditCreatePrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditDelete.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditDelete.json new file mode 100644 index 000000000000..65a892e861f9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditDelete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/6d3hhhh9-d553-6hde-cd33-d7hc6b580300?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801?api-version=2025-05-01-preview", + "Retry-After": 5 + } + }, + "204": { + "description": "The resource has been deleted." + } + }, + "operationId": "ConditionalCredits_Delete", + "title": "ConditionalCreditDelete" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditGet.json new file mode 100644 index 000000000000..ec7005b968f5 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditGet.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "ConditionalCredits_Get", + "title": "ConditionalCreditGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditUpdate.json new file mode 100644 index 000000000000..ee2f77f9b6ca --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditUpdate.json @@ -0,0 +1,182 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Updated Conditional Credit 20250801", + "milestones": [ + { + "name": "Q1 Updated Milestone", + "award": { + "credit": { + "amount": 6000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "startAt": "2025-10-01T00:00:00Z" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 60000, + "currencyCode": "USD" + } + }, + { + "name": "Q2 Milestone", + "award": { + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "startAt": "2026-01-01T00:00:00Z" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + } + }, + { + "name": "Q3 New Milestone", + "award": { + "credit": { + "amount": 15000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-01T00:00:00Z", + "startAt": "2026-04-01T00:00:00Z" + }, + "endAt": "2026-04-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440003", + "spendTarget": { + "amount": 150000, + "currencyCode": "USD" + } + } + ] + }, + "tags": { + "key1": "updated_value1", + "key3": "value3" + } + }, + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Updated Conditional Credit 20250801", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Updated Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 6000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 60000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + }, + { + "name": "Q3 New Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 15000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-04-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-04-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440003", + "spendTarget": { + "amount": 150000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CONDITIONALCREDITS-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T02:15:30.2080047Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "updated_value1", + "key3": "value3" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_Update", + "title": "ConditionalCreditUpdate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditUpdateContributor.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditUpdateContributor.json new file mode 100644 index 000000000000..60d086db16f4 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditUpdateContributor.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Updated Contributor Conditional Credit 20250801" + }, + "tags": { + "environment": "test", + "team": "finance" + } + }, + "conditionalCreditName": "conditionalCreditContributor_20250801", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCreditContributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCreditContributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Updated Contributor Conditional Credit 20250801", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q1 Milestone", + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CONDITIONALCREDITS-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T02:15:30.2080047Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "test", + "team": "finance" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/7e3ffff7-b331-4fcb-ab11-b5fa49368199?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCreditContributor_20250801?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_Update", + "title": "ConditionalCreditUpdateContributor" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditsListByResourceGroup.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditsListByResourceGroup.json new file mode 100644 index 000000000000..1404216439f1 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditsListByResourceGroup.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits?api-version=2025-05-01-preview&$skiptoken=abcd1234", + "value": [ + { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "conditionalCredit_simple_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_simple_20250801", + "location": "global", + "properties": { + "allowContributors": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Simple Conditional Credit", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-SIMPLE-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "production" + } + } + ] + } + } + }, + "operationId": "ConditionalCredits_ListByResourceGroup", + "title": "ConditionalCreditsListByResourceGroup" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditsListBySubscription.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditsListBySubscription.json new file mode 100644 index 000000000000..9509394b858f --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ConditionalCreditsListBySubscription.json @@ -0,0 +1,168 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/conditionalCredits?api-version=2025-05-01-preview&$skiptoken=xyz5678", + "value": [ + { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "conditionalCredit_contributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_contributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Contributor Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q1 Milestone", + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + }, + { + "name": "conditionalCredit_simple_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_03/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_simple_20250801", + "location": "global", + "properties": { + "allowContributors": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Simple Conditional Credit", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-SIMPLE-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "production" + } + } + ] + } + } + }, + "operationId": "ConditionalCredits_ListBySubscription", + "title": "ConditionalCreditsListBySubscription" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorCreate.json new file mode 100644 index 000000000000..e2df3408b3fb --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "displayName": "macc contributor 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "macc contributor 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Create", + "title": "Contributor_Create" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorEndDateUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorEndDateUpdate.json new file mode 100644 index 000000000000..8198bc8390b9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorEndDateUpdate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "endAt": "2023-07-10T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "contributor_macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/contributor_macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Contributor", + "milestones": [], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "Contributor_UpdateEndDate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorGet.json new file mode 100644 index 000000000000..4fdff39e9786 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorGet.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "Contributor_Get" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorGetFromPrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorGetFromPrimary.json new file mode 100644 index 000000000000..98ca3727574b --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorGetFromPrimary.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "contributorName": "macc_contributor_20230614", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + } + }, + "operationId": "Contributors_GetFromPrimary", + "title": "Contributor_GetFromPrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesAndShortfallGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesAndShortfallGet.json new file mode 100644 index 000000000000..df35c78be4bc --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesAndShortfallGet.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 9, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall32109876" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "ContributorWithMilestonesAndShortfall_GetFromPrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesAndShortfallGetFromPrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesAndShortfallGetFromPrimary.json new file mode 100644 index 000000000000..3043c78fe2a0 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesAndShortfallGetFromPrimary.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "contributorName": "macc_contributor_20230614", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 10, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "13810867107109238" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + } + } + } + }, + "operationId": "Contributors_GetFromPrimary", + "title": "Contributor_GetFromPrimary_WithMilestonesAndShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesGet.json new file mode 100644 index 000000000000..fe37178b6830 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesGet.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "ContributorWithMilestones_GetFromPrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesGetFromPrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesGetFromPrimary.json new file mode 100644 index 000000000000..39eb23706985 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorWithMilestonesGetFromPrimary.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "contributorName": "macc_contributor_20230614", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + } + }, + "operationId": "Contributors_GetFromPrimary", + "title": "Contributor_GetFromPrimary_WithMilestones" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsListFromApplicableMacc.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsListFromApplicableMacc.json new file mode 100644 index 000000000000..701804535910 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsListFromApplicableMacc.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "systemId": "13810867107109237" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "contributor_20230614", + "type": "Microsoft.BillingBenefits/applicableContributors", + "id": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/providers/Microsoft.BillingBenefits/applicableMaccs/13810867107109237/providers/Microsoft.BillingBenefits/applicableContributors/contributor_20230614", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromApplicableMacc", + "title": "ContributorsScopeList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsListFromPrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsListFromPrimary.json new file mode 100644 index 000000000000..c86b007533c9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsListFromPrimary.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromPrimary", + "title": "Contributors_ListFromPrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsWithMilestonesAndShortfallListFromPrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsWithMilestonesAndShortfallListFromPrimary.json new file mode 100644 index 000000000000..fbff470df7ff --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsWithMilestonesAndShortfallListFromPrimary.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 13, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "13810867107109238" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromPrimary", + "title": "ContributorsWithMilestonesAndShortfall_ListFromPrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsWithMilestonesListFromPrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsWithMilestonesListFromPrimary.json new file mode 100644 index 000000000000..f7b8b844c12d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ContributorsWithMilestonesListFromPrimary.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromPrimary", + "title": "ContributorsWithMilestones_ListFromPrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditCancel.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditCancel.json new file mode 100644 index 000000000000..d8a56e69dd2d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditCancel.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Canceled" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Cancel", + "title": "CreditCancel" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditCreate.json new file mode 100644 index 000000000000..4c06f75c91ed --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-01-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Create", + "title": "CreditCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditDelete.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditDelete.json new file mode 100644 index 000000000000..23db7482fe22 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + }, + "204": {} + }, + "operationId": "Credits_Delete", + "title": "CreditDelete" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditGet.json new file mode 100644 index 000000000000..4eee21a9a98c --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Credits_Get", + "title": "CreditGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditListApplicableCredits.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditListApplicableCredits.json new file mode 100644 index 000000000000..4d757feb428d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditListApplicableCredits.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/{acctId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/applicableCredits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/providers/Microsoft.BillingBenefits/applicableCredits/{systemId}", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/12345678", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/1185c37e-d180-5aea-03a3-07e2489791a8:3c9f6394-2029-4f58-bf47-76ebbb03136e_2019-05-31/billingProfiles/6EB6-D7AQ-BG7-TGB", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/1185c37e-d180-5aea-03a3-07e2489791a8:3c9f6394-2029-4f58-bf47-76ebbb03136e_2019-05-31/customers/5334c5c9-e4b0-4170-a015-fa8fff5c226a", + "endAt": "2024-07-01T23:59:59Z", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "reason": { + "description": "Outage credit (SLA)", + "code": 125 + }, + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testprimarydiscount", + "startAt": "2023-07-01T00:00:00Z", + "status": "Succeeded", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Credits_ListApplicable", + "title": "CreditSourcesListByCredit" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceCreate.json new file mode 100644 index 000000000000..7bc386cc7d6a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceCreate.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Sources_Create", + "title": "CreditSourceCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceDelete.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceDelete.json new file mode 100644 index 000000000000..26f09a5e1e4f --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Sources_Delete", + "title": "CreditSourceDelete" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceGet.json new file mode 100644 index 000000000000..257ad4ea20e5 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Sources_Get", + "title": "CreditSourceGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceTagsUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceTagsUpdate.json new file mode 100644 index 000000000000..5a60f222cfab --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourceTagsUpdate.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "tags": { + "key1": "value4", + "key2": "value5" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value4", + "key2": "value5" + } + } + } + }, + "operationId": "Sources_Update", + "title": "CreditSourceTagsUpdate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourcesListByCredit.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourcesListByCredit.json new file mode 100644 index 000000000000..a0d9f1bcdc26 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditSourcesListByCredit.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Sources_ListByCredit", + "title": "CreditSourcesListByCredit" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditTagsUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditTagsUpdate.json new file mode 100644 index 000000000000..40c9bcfdeb03 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditTagsUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "tags": { + "key1": "value4", + "key2": "value5" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileResourceId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value4", + "key2": "value5" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Update", + "title": "CreditTagsUpdate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditsListByResourceGroup.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditsListByResourceGroup.json new file mode 100644 index 000000000000..6642e85727f6 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditsListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Credits_ListByResourceGroup", + "title": "CreditsListByResourceGroup" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditsListBySubscription.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditsListBySubscription.json new file mode 100644 index 000000000000..2019203b2ca0 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/CreditsListBySubscription.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Credits_ListBySubscription", + "title": "CreditsListBySubscription" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountCancel.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountCancel.json new file mode 100644 index 000000000000..4db89d852047 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountCancel.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "discountName": "testdiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Canceled", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Discounts_Cancel", + "title": "DiscountCancel" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountGet.json new file mode 100644 index 000000000000..1853d66c98a1 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountGet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discount_Get", + "title": "DiscountGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountList.json new file mode 100644 index 000000000000..f415501398fa --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Discounts_SubscriptionList", + "title": "DiscountSubscriptionList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountListResourceGroup.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountListResourceGroup.json new file mode 100644 index 000000000000..86f850fa38f6 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountListResourceGroup.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Discounts_ResourceGroupList", + "title": "DiscountsResourceGroupList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreateAffiliate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreateAffiliate.json new file mode 100644 index 000000000000..a5bd391077ec --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreateAffiliate.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "displayName": "Virtual Machines D Series", + "entityType": "Affiliate", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testaffiliatediscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreateAffiliate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimary.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimary.json new file mode 100644 index 000000000000..d97a3a66d81a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimary.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimary" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryBackfill.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryBackfill.json new file mode 100644 index 000000000000..608e05c5256a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryBackfill.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "ProductFamily", + "productFamilyName": "Azure" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "ProductFamily", + "productFamilyName": "Azure" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "ProductFamily", + "productFamilyName": "Azure" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryBackfill" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithCustomPrice.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithCustomPrice.json new file mode 100644 index 000000000000..3ffe73d759a9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithCustomPrice.json @@ -0,0 +1,172 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPrice", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPrice", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryWithCustomPrice" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json new file mode 100644 index 000000000000..257744ab02d9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json @@ -0,0 +1,214 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + }, + { + "currency": "EUR", + "markets": [ + "FR" + ], + "value": 110.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPriceMultiCurrency", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + }, + { + "currency": "EUR", + "markets": [ + "FR" + ], + "value": 110.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPriceMultiCurrency", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + }, + { + "currency": "EUR", + "markets": [ + "FR" + ], + "value": 110.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPriceMultiCurrency", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryWithCustomPriceMultiCurrency" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithPriceGuarantee.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithPriceGuarantee.json new file mode 100644 index 000000000000..483529793ac9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsCreatePrimaryWithPriceGuarantee.json @@ -0,0 +1,140 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountType": "Sku", + "priceGuaranteeProperties": { + "priceGuaranteeDate": "2024-11-01T00:00:00", + "pricingPolicy": "Protected" + }, + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountType": "Sku", + "priceGuaranteeProperties": { + "priceGuaranteeDate": "2024-11-01T00:00:00", + "pricingPolicy": "Protected" + }, + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series Discount", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountType": "Sku", + "priceGuaranteeProperties": { + "priceGuaranteeDate": "2024-11-01T00:00:00", + "pricingPolicy": "Protected" + }, + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryWithPriceGuarantee" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsDelete.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsDelete.json new file mode 100644 index 000000000000..48d2262b3073 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "discountName": "testdiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + }, + "204": {} + }, + "operationId": "Discounts_Delete", + "title": "ReservationOrderAliasCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsUpdate.json new file mode 100644 index 000000000000..5d1b3dfc2125 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/DiscountsUpdate.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Virtual Machines D Series" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-Asyncoperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": "5" + } + } + }, + "operationId": "Discount_Update", + "title": "DiscountGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/EndCustomerInvestmentFundCreditCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/EndCustomerInvestmentFundCreditCreate.json new file mode 100644 index 000000000000..175595f86311 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/EndCustomerInvestmentFundCreditCreate.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "breakdown": [ + { + "allocation": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "dimensions": [ + { + "key": "productFamily", + "value": "Azure" + }, + { + "key": "productCode", + "value": "00002b30-0000-0260-d348-f3ffcd565473" + }, + { + "key": "creditType", + "value": "EndCustomerInvestmentCredit" + }, + { + "key": "supplierType", + "value": "External" + } + ], + "endAt": "2025-08-31T23:59:59.999Z", + "startAt": "2025-08-01T00:00:00Z" + } + ], + "credit": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2025-08-31T23:59:59.999Z", + "productCode": "00002b30-0000-0260-d348-f3ffcd565473", + "startAt": "2025-08-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "breakdown": [ + { + "allocation": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "dimensions": [ + { + "key": "productFamily", + "value": "Azure" + }, + { + "key": "productCode", + "value": "00002b30-0000-0260-d348-f3ffcd565473" + }, + { + "key": "creditType", + "value": "EndCustomerInvestmentCredit" + }, + { + "key": "supplierType", + "value": "External" + } + ], + "endAt": "2025-08-31T23:59:59.999Z", + "startAt": "2025-08-01T00:00:00Z" + } + ], + "credit": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2025-08-31T23:59:59.999Z", + "productCode": "00002b30-0000-0260-d348-f3ffcd565473", + "startAt": "2025-08-01T00:00:00Z", + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "breakdown": [ + { + "allocation": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "dimensions": [ + { + "key": "productFamily", + "value": "Azure" + }, + { + "key": "productCode", + "value": "00002b30-0000-0260-d348-f3ffcd565473" + }, + { + "key": "creditType", + "value": "EndCustomerInvestmentCredit" + }, + { + "key": "supplierType", + "value": "External" + } + ], + "endAt": "2025-08-31T23:59:59.999Z", + "startAt": "2025-08-01T00:00:00Z" + } + ], + "credit": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2025-08-31T23:59:59.999Z", + "productCode": "00002b30-0000-0260-d348-f3ffcd565473", + "startAt": "2025-08-01T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Create", + "title": "EndCustomerInvestmentFundCreditCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneCommitmentUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneCommitmentUpdate.json new file mode 100644 index 000000000000..23ef26171419 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneCommitmentUpdate.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "milestones": [ + { + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccAndMilestoneCommitment_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneEndDateUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneEndDateUpdate.json new file mode 100644 index 000000000000..00357e386901 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneEndDateUpdate.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "endAt": "2029-05-01T23:59:59Z", + "milestones": [ + { + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "endAt": "2028-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2029-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2028-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccAndMilestoneEndDate_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneMultiPropertyUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneMultiPropertyUpdate.json new file mode 100644 index 000000000000..6684f58a3e72 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccAndMilestoneMultiPropertyUpdate.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "allowContributors": false, + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated with milestones", + "endAt": "2029-10-31T23:59:59Z", + "milestones": [ + { + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "endAt": "2027-06-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 35000, + "currencyCode": "USD" + }, + "endAt": "2028-06-30T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": false, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated with milestones", + "endAt": "2029-10-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "endAt": "2027-06-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 35000, + "currencyCode": "USD" + }, + "endAt": "2028-06-30T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccAndMilestoneMultiProperty_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccCancel.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccCancel.json new file mode 100644 index 000000000000..ec555f6c392d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccCancel.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "startAt": "2023-07-01T00:00:00Z", + "status": "Canceled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Cancel", + "title": "Macc_Cancel" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccChargeShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccChargeShortfall.json new file mode 100644 index 000000000000..e37a7af891e9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccChargeShortfall.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/{rgName}/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 3, + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "shortfall87654321" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_ChargeShortfall", + "title": "Maccs_ChargeShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccContributorRuleUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccContributorRuleUpdate.json new file mode 100644 index 000000000000..ea28bb78e5c0 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccContributorRuleUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "allowContributors": false + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": false, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccEndContributorRule_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccCreate.json new file mode 100644 index 000000000000..c5248836625f --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccCreate.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "allowContributors": true, + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Create", + "title": "Macc_Create" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccDelete.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccDelete.json new file mode 100644 index 000000000000..aed17df6ca0d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + }, + "204": {} + }, + "operationId": "Maccs_Delete", + "title": "ServiceSpecificIncentives_Delete" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccDisplayNameUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccDisplayNameUpdate.json new file mode 100644 index 000000000000..5cf52f822825 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccDisplayNameUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Updated MACC Display Name" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Updated MACC Display Name", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccDisplayName_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccGet.json new file mode 100644 index 000000000000..0289a0a5fcb5 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccGet.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "Macc_Get" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMilestoneSuppressAutomaticShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMilestoneSuppressAutomaticShortfall.json new file mode 100644 index 000000000000..8193b2834c41 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMilestoneSuppressAutomaticShortfall.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall charging" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall charging" + }, + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccMilestoneSuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMilestoneUnsuppressAutomaticShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMilestoneUnsuppressAutomaticShortfall.json new file mode 100644 index 000000000000..2a01bc3d5cf9 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMilestoneUnsuppressAutomaticShortfall.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null, + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null, + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "PendingSettlement" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-07-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccMilestoneUnsuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMultiPropertyUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMultiPropertyUpdate.json new file mode 100644 index 000000000000..fdbdb00bd8fb --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccMultiPropertyUpdate.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "allowContributors": false, + "commitment": { + "amount": 45000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated", + "endAt": "2024-10-01T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": false, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 45000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated", + "endAt": "2024-10-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccMultiProperty_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccNoMilestonesCommitmentUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccNoMilestonesCommitmentUpdate.json new file mode 100644 index 000000000000..dc6603d532ea --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccNoMilestonesCommitmentUpdate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + } + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccCommitment_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccNoMilestonesEndDateUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccNoMilestonesEndDateUpdate.json new file mode 100644 index 000000000000..7bb8db32ffde --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccNoMilestonesEndDateUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "endAt": "2023-07-10T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccEndDate_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributors.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributors.json new file mode 100644 index 000000000000..d3c962c2f7db --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributors.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "contributors": true, + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2024-06-30T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 4, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "shortfall56789012" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + }, + { + "properties": { + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor 1", + "endAt": "2024-06-30T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/{leadMaccName}/contributor/{maccContributorName}", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewContributors" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributorsWithMilestones.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributorsWithMilestones.json new file mode 100644 index 000000000000..403e63c890db --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributorsWithMilestones.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "contributors": true, + "milestones": true, + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + }, + { + "properties": { + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc Contributor 1", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/{leadMaccName}/contributor/{maccContributorName}", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewContributorsWithMilestones" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributorsWithMilestonesAndShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributorsWithMilestonesAndShortfall.json new file mode 100644 index 000000000000..9f94e4772aa3 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewContributorsWithMilestonesAndShortfall.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "contributors": true, + "milestones": true, + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 5, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall76543210" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + }, + { + "properties": { + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc Contributor 1", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/{leadMaccName}/contributor/{maccContributorName}", + "shortfall": { + "balanceVersion": 6, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall65432109" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewContributorsWithMilestonesAndShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewNoContributors.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewNoContributors.json new file mode 100644 index 000000000000..d0bbc54ebedb --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewNoContributors.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2024-06-30T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/{rgName}/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 5, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "shortfall67890123" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewNoContributors" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewWithMilestonesNoContributors.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewWithMilestonesNoContributors.json new file mode 100644 index 000000000000..7227c3ad7965 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSellerViewWithMilestonesNoContributors.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "milestones": true + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewWithMilestonesNoContributors" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSuppressAutomaticShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSuppressAutomaticShortfall.json new file mode 100644 index 000000000000..c44566ab75dd --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccSuppressAutomaticShortfall.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall charging" + } + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall." + }, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccSuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccTagsUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccTagsUpdate.json new file mode 100644 index 000000000000..35ac04e787a0 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccTagsUpdate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": {}, + "tags": { + "key1": "value4", + "key2": "value5" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value4", + "key2": "value5" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccTags_Update" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccUnsuppressAutomaticShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccUnsuppressAutomaticShortfall.json new file mode 100644 index 000000000000..f4d80a35838d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccUnsuppressAutomaticShortfall.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "PendingSettlement", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccUnsuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCancel.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCancel.json new file mode 100644 index 000000000000..ad0072b53b2a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCancel.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "status": "Canceled", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCancel" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCancelWithMilestones.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCancelWithMilestones.json new file mode 100644 index 000000000000..974b706edb7c --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCancelWithMilestones.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "status": "Canceled", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCancelWithMilestones" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreate.json new file mode 100644 index 000000000000..f82c1c144167 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateBackfilledMacc.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateBackfilledMacc.json new file mode 100644 index 000000000000..140d9f381b4c --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateBackfilledMacc.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateBackfilledMacc" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateContributor.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateContributor.json new file mode 100644 index 000000000000..f5464cfc0899 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateContributor.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateContributor" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateMilestonesOnExistingMacc.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateMilestonesOnExistingMacc.json new file mode 100644 index 000000000000..64e24c965deb --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateMilestonesOnExistingMacc.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 7000, + "currencyCode": "USD" + }, + "endAt": "2024-10-31T23:59:59Z" + }, + { + "commitment": { + "amount": 13000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateMilestonesOnExistingMacc" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateMultiEntity.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateMultiEntity.json new file mode 100644 index 000000000000..f80c88fa5920 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateMultiEntity.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + }, + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + }, + { + "reason": "Error message", + "reasonCode": "ErrorCode", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": false + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateMultiEntity" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateNewMaccWithMilestone.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateNewMaccWithMilestone.json new file mode 100644 index 000000000000..5fd5d7da94b1 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateCreateNewMaccWithMilestone.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 5000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-07-31T23:59:59Z" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateNewMaccWithMilestone" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdate.json new file mode 100644 index 000000000000..3cc38c8c9211 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdate.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Test MACC Benefit", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-07-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateCommitment.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateCommitment.json new file mode 100644 index 000000000000..d1ad1244ba9b --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateCommitment.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateCommitment" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateCommitmentEndAtContributorRule.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateCommitmentEndAtContributorRule.json new file mode 100644 index 000000000000..67b9950d40b6 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateCommitmentEndAtContributorRule.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateCommitmentEndAtContributorRule" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateContributor.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateContributor.json new file mode 100644 index 000000000000..49e8d0a5d911 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateContributor.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Test MACC Benefit", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Contributor", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateContributor" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateContributorRule.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateContributorRule.json new file mode 100644 index 000000000000..5e1656020fa8 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateContributorRule.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateContributorRule" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateDisplayName.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateDisplayName.json new file mode 100644 index 000000000000..71b1ad510ae6 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateDisplayName.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Updated Macc Name", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateDisplayName" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateEndAt.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateEndAt.json new file mode 100644 index 000000000000..63449d1c2d73 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateEndAt.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateEndAt" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMaccAndMilestoneCommitment.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMaccAndMilestoneCommitment.json new file mode 100644 index 000000000000..5e44218e8053 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMaccAndMilestoneCommitment.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 40000, + "currencyCode": "USD" + }, + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMaccAndMilestoneCommitment" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMaccAndMilestoneEndDate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMaccAndMilestoneEndDate.json new file mode 100644 index 000000000000..a78b87744106 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMaccAndMilestoneEndDate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "endAt": "2027-11-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "endAt": "2029-02-28T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMaccAndMilestoneEndDate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMilestoneCommitment.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMilestoneCommitment.json new file mode 100644 index 000000000000..28fcd001f1fd --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMilestoneCommitment.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 40000, + "currencyCode": "USD" + }, + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMilestoneCommitment" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMilestoneEndDate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMilestoneEndDate.json new file mode 100644 index 000000000000..2be8de7b0c8a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateMilestoneEndDate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "endAt": "2027-11-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "endAt": "2029-02-28T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMilestoneEndDate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateRemoveMilestones.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateRemoveMilestones.json new file mode 100644 index 000000000000..9b66ca5442a4 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateRemoveMilestones.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "milestones": [ + { + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Removed" + }, + { + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Removed" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateRemoveMilestones" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateSuppressShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateSuppressShortfall.json new file mode 100644 index 000000000000..1ad139957150 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateSuppressShortfall.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequest", + "message": "Customer requested to suppress automatic shortfall" + }, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateSuppressShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateSuppressShortfallOnMilestone.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateSuppressShortfallOnMilestone.json new file mode 100644 index 000000000000..f7d96b1be9f0 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateSuppressShortfallOnMilestone.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequest", + "message": "Customer requested to suppress automatic shortfall" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateSuppressShortfallOnMilestone" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateUnsuppressShortfall.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateUnsuppressShortfall.json new file mode 100644 index 000000000000..fb12b3a53698 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateUnsuppressShortfall.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateUnsuppressShortfall" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateUnsuppressShortfallOnMilestone.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateUnsuppressShortfallOnMilestone.json new file mode 100644 index 000000000000..4fdfc488ef27 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateUpdateUnsuppressShortfallOnMilestone.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateUnsuppressShortfallOnMilestone" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateWriteOffWithMilestones.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateWriteOffWithMilestones.json new file mode 100644 index 000000000000..0f744bfdaa20 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccValidateWriteOffWithMilestones.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "status": "PendingSettlement", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateWriteOffWithMilestones" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesAndShortfallGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesAndShortfallGet.json new file mode 100644 index 000000000000..9079c908c34d --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesAndShortfallGet.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": { + "balanceVersion": 1, + "charge": { + "amount": 2000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2027-07-01T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2026-07-01T00:00:00Z", + "systemId": "lotId" + }, + "status": "ShortfallCharged" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 3, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall98765432" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "MaccWithMilestonesAndShortfall_Get" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesCancel.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesCancel.json new file mode 100644 index 000000000000..ae5e2bb0a794 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesCancel.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-10-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Canceled" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Canceled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Canceled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Cancel", + "title": "MaccWithMilestones_Cancel" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesCreate.json new file mode 100644 index 000000000000..371bff451f10 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesCreate.json @@ -0,0 +1,170 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "allowContributors": true, + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2025-05-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Scheduled" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2025-05-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Create", + "title": "MaccWithMilestones_Create" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesGet.json new file mode 100644 index 000000000000..c1891303a2f7 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesGet.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "MaccWithMilestones_Get" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesWriteOff.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesWriteOff.json new file mode 100644 index 000000000000..c15bcac89fab --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithMilestonesWriteOff.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-10-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "PendingSettlement" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": null, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallWaived", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_WriteOff", + "title": "MaccWithMilestones_WriteOff" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithShortfallGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithShortfallGet.json new file mode 100644 index 000000000000..27d01e732058 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWithShortfallGet.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc_20230614", + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "shortfall": { + "balanceVersion": 2, + "charge": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2025-09-30T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2024-09-01T00:00:00Z", + "systemId": "shortfall12345678" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "MaccWithShortfall_Get" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWriteOff.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWriteOff.json new file mode 100644 index 000000000000..38035b2a7668 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccWriteOff.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": null, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallWaived", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_WriteOff", + "title": "Macc_WriteOff" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsListByResourceGroup.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsListByResourceGroup.json new file mode 100644 index 000000000000..e8293fe5afed --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsListByResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListByResourceGroup", + "title": "Maccs_ListByResourceGroup" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsListBySubscription.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsListBySubscription.json new file mode 100644 index 000000000000..a54b8fb7b1e2 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsListBySubscription.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListBySubscription", + "title": "Maccs_ListBySubscription" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsWithMilestonesListByResourceGroup.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsWithMilestonesListByResourceGroup.json new file mode 100644 index 000000000000..6c56c45bb7cc --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsWithMilestonesListByResourceGroup.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListByResourceGroup", + "title": "MaccsWithMilestones_ListByResourceGroup" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsWithMilestonesListBySubscription.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsWithMilestonesListBySubscription.json new file mode 100644 index 000000000000..2a7e3a756ff0 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MaccsWithMilestonesListBySubscription.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListBySubscription", + "title": "MaccsWithMilestones_ListBySubscription" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MilestonesCreateOnExistingMacc.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MilestonesCreateOnExistingMacc.json new file mode 100644 index 000000000000..043428752bbf --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MilestonesCreateOnExistingMacc.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MilestonesCreate_OnExistingMacc" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MilestonesRemoveFromMacc.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MilestonesRemoveFromMacc.json new file mode 100644 index 000000000000..478d37482e6a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/MilestonesRemoveFromMacc.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "milestoneId": "12000000-0000-0000-0000-000000000000", + "status": "Removed" + }, + { + "milestoneId": "13000000-0000-0000-0000-000000000001", + "status": "Removed" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MilestonesRemove_FromMacc" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/OperationsGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/OperationsGet.json new file mode 100644 index 000000000000..b3c64121e622 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/OperationsGet.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.BillingBenefits/savingsPlanOrderAliases/read", + "display": { + "description": "Read all savings plan order aliases", + "operation": "Get Savings plan order alias", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrderAliases" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrderAliases/write", + "display": { + "description": "Create a Savings plan order alias", + "operation": "Create SavingsPlanOrderAliases", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrderAliases" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/read", + "display": { + "description": "Read all savings plan orders", + "operation": "Get Savings plan orders", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrders" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/write", + "display": { + "description": "Patch a Savings plan order", + "operation": "Patch SavingsPlanOrders", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrders" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/action", + "display": { + "description": "Update a Savings plan order", + "operation": "Update SavingsPlanOrders", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrders" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans/read", + "display": { + "description": "Read All SavingsPlans", + "operation": "Get SavingsPlans", + "provider": "Microsoft Benefits", + "resource": "SavingsPlans" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans/write", + "display": { + "description": "Patch an existing Savings plan", + "operation": "Patch SavingsPlans", + "provider": "Microsoft Benefits", + "resource": "SavingsPlans" + } + }, + { + "name": "Microsoft.BillingBenefits/register/action", + "display": { + "description": "Registers the Benefits resource provider and enables the creation of Benefits resources.", + "operation": "Registers the Benefits Resource Provider.", + "provider": "Microsoft Benefits", + "resource": "SavingsPlans" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "OperationsGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/PromotionalCreditCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/PromotionalCreditCreate.json new file mode 100644 index 000000000000..b90276682785 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/PromotionalCreditCreate.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "policies": { + "expiration": "SuspendBillingProfile", + "redemption": "AutoRedeem" + }, + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2024-01-12T00:00:00Z", + "policies": { + "expiration": "SuspendBillingProfile", + "redemption": "AutoRedeem" + }, + "productCode": "18eb6fdd-37c1-479b-b9be-550dbc461842", + "startAt": "2023-12-12T00:00:00Z", + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2024-01-12T00:00:00Z", + "policies": { + "expiration": "SuspendBillingProfile", + "redemption": "AutoRedeem" + }, + "productCode": "18eb6fdd-37c1-479b-b9be-550dbc461842", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Create", + "title": "PromotionalCreditCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ReservationOrderAliasCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ReservationOrderAliasCreate.json new file mode 100644 index 000000000000..2d9c83407955 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ReservationOrderAliasCreate.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "eastus", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "quantity": 5, + "renew": true, + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + }, + "reservationOrderAliasName": "reservationOrderAlias123" + }, + "responses": { + "200": { + "body": { + "name": "reservationOrderAlias123", + "type": "Microsoft.BillingBenefits/reservationOrderAliases", + "id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "provisioningState": "Created", + "quantity": 5, + "renew": true, + "reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000", + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + } + }, + "201": { + "body": { + "name": "reservationOrderAlias123", + "type": "Microsoft.BillingBenefits/reservationOrderAliases", + "id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123", + "location": "eastus", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "provisioningState": "Created", + "quantity": 5, + "renew": true, + "reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000", + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-06-02-privatepreview", + "Retry-After": 5 + } + } + }, + "operationId": "ReservationOrderAlias_Create", + "title": "ReservationOrderAliasCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ReservationOrderAliasGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ReservationOrderAliasGet.json new file mode 100644 index 000000000000..821b702e59aa --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/ReservationOrderAliasGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "reservationOrderAliasName": "reservationOrderAlias123" + }, + "responses": { + "200": { + "body": { + "name": "reservationOrderAlias123", + "type": "Microsoft.BillingBenefits/reservationOrderAliases", + "id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123", + "location": "eastus", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "provisioningState": "Created", + "quantity": 5, + "renew": true, + "reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000", + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + } + } + }, + "operationId": "ReservationOrderAlias_Get", + "title": "ReservationOrderAliasGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanItemExpandedGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanItemExpandedGet.json new file mode 100644 index 000000000000..3cf3e4aa7468 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanItemExpandedGet.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "$expand": "renewProperties", + "api-version": "2025-05-01-preview", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeType": "Shared", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_patch_rename2", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-21T18:15:42.4098626Z", + "expiryDateTime": "2025-10-18T21:16:13.1854959Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-18T21:14:26.8279361Z", + "renew": true, + "renewProperties": { + "purchaseProperties": { + "properties": { + "appliedScopeType": "Shared", + "billingPlan": "Upfront", + "billingScopeId": "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_patch_rename2_renewed", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "term": "P3Y", + "userFriendlyAppliedScopeType": "Shared", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 84, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 83.87, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlan_Get", + "title": "SavingsPlanItemWithExpandedRenewPropertiesGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanItemGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanItemGet.json new file mode 100644 index 000000000000..01e1e93fe4d8 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanItemGet.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeType": "Shared", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_patch_rename2", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-21T18:15:42.4098626Z", + "expiryDateTime": "2025-10-18T21:16:13.1854959Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-18T21:14:26.8279361Z", + "renew": true, + "term": "P3Y", + "userFriendlyAppliedScopeType": "Shared", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 84, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 83.87, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlan_Get", + "title": "SavingsPlanItemGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasCreate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasCreate.json new file mode 100644 index 000000000000..6bdb678c8f9f --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasCreate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "appliedScopeProperties": null, + "appliedScopeType": "Shared", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "savingsPlanOrderAliasName": "spAlias123" + }, + "responses": { + "200": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": null, + "appliedScopeType": "Shared", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "201": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": null, + "appliedScopeType": "Shared", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01-privatepreview", + "Retry-After": 5 + } + } + }, + "operationId": "SavingsPlanOrderAlias_Create", + "title": "SavingsPlanOrderAliasCreate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasCreateSingleScope.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasCreateSingleScope.json new file mode 100644 index 000000000000..6646c80d116a --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasCreateSingleScope.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "savingsPlanOrderAliasName": "spAlias123" + }, + "responses": { + "200": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "201": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01-privatepreview", + "Retry-After": 5 + } + } + }, + "operationId": "SavingsPlanOrderAlias_Create", + "title": "SavingsPlanOrderAliasCreateSingleScope" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasGet.json new file mode 100644 index 000000000000..02e687641535 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderAliasGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderAliasName": "spAlias123" + }, + "responses": { + "200": { + "body": { + "name": "spAlias123", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/spAlias123", + "kind": null, + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 15.23, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "ComputeSavingsPlan_2021-07-01", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000000", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlanOrderAlias_Get", + "title": "SavingsPlanOrderAliasGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderElevate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderElevate.json new file mode 100644 index 000000000000..02cbd2c88476 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderElevate.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "70000000-0000-0000-0000-000000000005", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009/providers/Microsoft.Authorization/roleAssignments/70000000-0000-0000-0000-000000000005", + "properties": { + "principalId": "50000000-0000-0000-0000-000000000000", + "roleDefinitionId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009/providers/Microsoft.Authorization/roleDefinitions/30000000-0000-0000-0000-000000000008", + "scope": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009" + } + } + } + }, + "operationId": "SavingsPlanOrder_Elevate", + "title": "SavingsPlanOrderElevate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderExpandedGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderExpandedGet.json new file mode 100644 index 000000000000..c3c3867c2203 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderExpandedGet.json @@ -0,0 +1,337 @@ +{ + "parameters": { + "$expand": "schedule", + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "properties": { + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000003", + "displayName": "Compute_SavingsPlan_10-19-2022_11-01", + "expiryDateTime": "2025-10-19T18:03:55.2519794Z", + "planInformation": { + "nextPaymentDueDate": "2022-11-19", + "pricingCurrencyTotal": { + "amount": 26.28, + "currencyCode": "USD" + }, + "startDate": "2022-10-19", + "transactions": [ + { + "billingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "dueDate": "2022-10-19", + "paymentDate": "2022-10-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "dueDate": "2022-11-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2022-12-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-01-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-02-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-03-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-04-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-05-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-06-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-07-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-08-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-09-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-10-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-11-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-12-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-01-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-02-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-03-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-04-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-05-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-06-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-07-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-08-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-09-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-10-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-11-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-12-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-01-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-02-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-03-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-04-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-05-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-06-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-07-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-08-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-09-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ] + }, + "provisioningState": "Succeeded", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlanOrder_Get", + "title": "SavingsPlanOrderWithExpandedPaymentsGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderGet.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderGet.json new file mode 100644 index 000000000000..e0dfc1f67ed4 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "properties": { + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "20000000-0000-0000-0000-000000000005", + "displayName": "Compute_SavingsPlan_10-19-2022_11-01", + "expiryDateTime": "2025-10-19T18:03:55.2519794Z", + "provisioningState": "Succeeded", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlanOrder_Get", + "title": "SavingsPlanOrderGet" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderList.json new file mode 100644 index 000000000000..b1477c472b99 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanOrderList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "20000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "properties": { + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000004:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000004:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "20000000-0000-0000-0000-000000000005", + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "expiryDateTime": "2025-10-28T23:40:30.6028303Z", + "provisioningState": "Succeeded", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/20000000-0000-0000-0000-000000000001" + ], + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + }, + "operationId": "SavingsPlanOrder_List", + "title": "SavingsPlanOrderList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanUpdate.json new file mode 100644 index 000000000000..b3212ebedc12 --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanUpdate.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "displayName": "TestDisplayName", + "renew": true, + "renewProperties": { + "purchaseProperties": { + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 15.23, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "TestDisplayName_renewed", + "renew": false, + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + } + }, + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billingbenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeProperties": { + "displayName": "Azure subscription 1", + "subscriptionId": "/subscriptions/10000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "benefitStartTime": "2022-10-27T00:34:33.6697600Z", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "riName", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-11-10T00:12:54.549373Z", + "expiryDateTime": "2025-10-27T00:34:33.6697600Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-27T00:32:45.5823486Z", + "renew": true, + "term": "P3Y", + "userFriendlyAppliedScopeType": "Single", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 37, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 53.85, + "valueUnit": "percentage" + } + ], + "trend": "DOWN" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "202": { + "description": "The request is completed.", + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2020-07-01" + } + }, + "404": {} + }, + "operationId": "SavingsPlan_Update", + "title": "SavingsPlanUpdate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanValidatePurchase.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanValidatePurchase.json new file mode 100644 index 000000000000..0804037148ff --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanValidatePurchase.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 15.23, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "ComputeSavingsPlan_2021-07-01", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + { + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/RG" + }, + "appliedScopeType": "Single", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 20, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "ComputeSavingsPlan_2021-07-01", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "reason": "Your provider has not enabled Savings Plan purchase on this subscription.", + "reasonCode": "CustomerCannotPurchaseSavingsPlan", + "valid": false + }, + { + "valid": true + } + ] + } + } + }, + "operationId": "ValidatePurchase", + "title": "SavingsPlanValidatePurchase" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanValidateUpdate.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanValidateUpdate.json new file mode 100644 index 000000000000..ece12f9fd7da --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlanValidateUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "appliedScopeProperties": { + "managementGroupId": "/providers/Microsoft.Management/managementGroups/30000000-0000-0000-0000-000000000100", + "tenantId": "30000000-0000-0000-0000-000000000100" + }, + "appliedScopeType": "ManagementGroup" + }, + { + "appliedScopeProperties": { + "managementGroupId": "/providers/Microsoft.Management/managementGroups/MockMG", + "tenantId": "30000000-0000-0000-0000-000000000100" + }, + "appliedScopeType": "ManagementGroup" + } + ] + }, + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "valid": true + }, + { + "valid": true + } + ] + } + } + }, + "operationId": "SavingsPlan_ValidateUpdate", + "title": "SavingsPlanValidateUpdate" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlansInOrderList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlansInOrderList.json new file mode 100644 index 000000000000..816ab54881ef --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlansInOrderList.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47/resourcegroups/3ppRG" + }, + "appliedScopeType": "Single", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.002, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-24-2022_15-44", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-24T22:47:04.8539493Z", + "expiryDateTime": "2023-10-24T22:47:04.6196635Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-24T22:45:13.6202486Z", + "renew": false, + "term": "P1Y", + "userFriendlyAppliedScopeType": "ResourceGroup", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + }, + "operationId": "SavingsPlan_List", + "title": "SavingsPlansInOrderList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlansList.json b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlansList.json new file mode 100644 index 000000000000..b19cb5a853da --- /dev/null +++ b/specification/billingbenefits/BillingBenefits.Management/examples/2025-05-01-preview/SavingsPlansList.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "$filter": "(properties%2farchived+eq+false)", + "$orderby": "properties/displayName asc", + "$skiptoken": "50", + "api-version": "2025-05-01-preview", + "refreshsummary": "true", + "take": "1" + }, + "responses": { + "200": { + "body": { + "additionalProperties": [ + { + "name": "summary", + "value": { + "cancelledCount": 0, + "expiredCount": 0, + "expiringCount": 0, + "failedCount": 0, + "noBenefitCount": 0, + "pendingCount": 0, + "processingCount": 0, + "succeededCount": 1, + "warningCount": 0 + } + } + ], + "value": [ + { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeProperties": { + "displayName": "Azure subscription 1", + "subscriptionId": "/subscriptions/20000000-0000-0000-0000-000000000005" + }, + "appliedScopeType": "Single", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-19-2022_11-03", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-19T18:05:37.1034288Z", + "expiryDateTime": "2023-10-19T18:05:36.5252231Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-19T18:03:56.4032132Z", + "renew": false, + "term": "P1Y", + "userFriendlyAppliedScopeType": "Single", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 78, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 78.12, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + }, + "operationId": "SavingsPlan_ListAll", + "title": "SavingsPlansList" +} diff --git a/specification/billingbenefits/BillingBenefits.Management/main.tsp b/specification/billingbenefits/BillingBenefits.Management/main.tsp index c00e01db3eed..bd089ed4b92b 100644 --- a/specification/billingbenefits/BillingBenefits.Management/main.tsp +++ b/specification/billingbenefits/BillingBenefits.Management/main.tsp @@ -17,6 +17,11 @@ import "./SavingsPlanOrderModel.tsp"; import "./SavingsPlanModel.tsp"; import "./ReservationOrderAliasResponse.tsp"; import "./Discount.tsp"; +import "./Macc.tsp"; +import "./Contributor.tsp"; +import "./Credit.tsp"; +import "./ConditionalCredit.tsp"; +import "./CreditSource.tsp"; import "./routes.tsp"; import "./back-compatible.tsp"; @@ -43,6 +48,11 @@ enum Versions { * The 2024-11-01-preview API version. */ v2024_11_01_preview: "2024-11-01-preview", + + /** + * The 2025-05-01-preview API version. + */ + v2025_05_01_preview: "2025-05-01-preview", } interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/billingbenefits/BillingBenefits.Management/models.tsp b/specification/billingbenefits/BillingBenefits.Management/models.tsp index 41638b6fa2ba..d3264a6e456e 100644 --- a/specification/billingbenefits/BillingBenefits.Management/models.tsp +++ b/specification/billingbenefits/BillingBenefits.Management/models.tsp @@ -3,12 +3,17 @@ import "@typespec/http"; import "@azure-tools/typespec-azure-core"; import "@azure-tools/typespec-azure-resource-manager"; import "@azure-tools/typespec-client-generator-core"; +import "@typespec/openapi"; +import "@typespec/versioning"; using TypeSpec.Rest; using TypeSpec.Http; +using Azure.Core; using Azure.ResourceManager; using Azure.ResourceManager.Foundations; using Azure.ClientGenerator.Core; +using TypeSpec.OpenAPI; +using TypeSpec.Versioning; namespace Microsoft.BillingBenefits; @@ -1101,11 +1106,25 @@ model SavingsPlanValidResponseProperty { } #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@removed(Versions.v2025_05_01_preview) model SavingsPlanPurchaseValidateRequest { #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" benefits?: SavingsPlanOrderAliasModel[]; } +/** + * Savings plan validate model + */ +@added(Versions.v2025_05_01_preview) +model SavingsPlanValidateModel extends BenefitValidateModel { + ...SavingsPlanOrderAliasModel; + + /** + * Type of benefit to validate. This is used to determine the model type for validation. + */ + benefitType: "SavingsPlan"; +} + /** * Reservation order alias */ @@ -1859,3 +1878,1403 @@ model ExpandParameter { @query("$expand") $expand?: string; } + +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + */ +@added(Versions.v2025_05_01_preview) +union Origin { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + user: "user", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + system: "system", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + `user,system`: "user,system", +} + +/** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ +@added(Versions.v2025_05_01_preview) +union ActionType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Internal: "Internal", +} + +/** + * The type of identity that created the resource. + */ +@added(Versions.v2025_05_01_preview) +union CreatedByType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + User: "User", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Application: "Application", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + ManagedIdentity: "ManagedIdentity", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Key: "Key", +} + +/** + * Represents benefit model type for validation. + */ +@added(Versions.v2025_05_01_preview) +union BenefitType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + SavingsPlan: "SavingsPlan", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + MACC: "MACC", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + ConditionalCredits: "ConditionalCredits", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + Credits: "Credits", +} + +/** + * Abstract benefit model to validate. + */ +@added(Versions.v2025_05_01_preview) +@discriminator("benefitType") +model BenefitValidateModel { + /** + * Type of benefit to validate. This is used to determine the model type for validation. + */ + benefitType: BenefitType; +} + +/** + * Request to validate any benefit. + */ +@added(Versions.v2025_05_01_preview) +model BenefitValidateRequest { + /** + * Defines benefits for validation. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + benefits?: BenefitValidateModel[]; +} + +/** + * Benefit validate response. + */ +@added(Versions.v2025_05_01_preview) +model BenefitValidateResponse { + /** + * Defines benefit validation response for benefits. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + benefits?: BenefitValidateResponseProperty[]; + + /** + * Url to get the next page. + */ + nextLink?: string; +} + +/** + * Benefit validate response property + */ +@added(Versions.v2025_05_01_preview) +model BenefitValidateResponseProperty { + /** + * Indicates if the provided input was valid + */ + valid?: boolean; + + /** + * Failure reason code if the provided input was invalid + */ + reasonCode?: string; + + /** + * Failure reason if the provided input was invalid + */ + reason?: string; + + /** + * Resource identifier of the benefit that was validated. + */ + resourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.BillingBenefits/*"; + } + ]>; +} + +// =================================================================== +// MACC (Microsoft Azure Consumption Commitment) MODELS - Added in 2025-05-01-preview +// =================================================================== + +/** + * Represents the current status of the MACC. + */ +@added(Versions.v2025_05_01_preview) +union MaccStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Scheduled: "Scheduled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Stopped: "Stopped", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PendingSettlement: "PendingSettlement", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallCharged: "ShortfallCharged", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallWaived: "ShortfallWaived", +} + +/** + * Provisioning states of MACC. + */ +@added(Versions.v2025_05_01_preview) +union MaccProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Scheduled: "Scheduled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallPending: "ShortfallPending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Stopped: "Stopped", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PendingSettlement: "PendingSettlement", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallCharged: "ShortfallCharged", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallWaived: "ShortfallWaived", +} + +/** + * Represents type of the object being operated on. Possible values are primary or contributor. + */ +@added(Versions.v2025_05_01_preview) +union MaccEntityType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Primary: "Primary", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Contributor: "Contributor", +} + +/** + * Represents the enablement status of a feature or settings. + */ +@added(Versions.v2025_05_01_preview) +union EnablementMode { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Represents the current status of the Milestone. + */ +@added(Versions.v2025_05_01_preview) +union MaccMilestoneStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Scheduled: "Scheduled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Removed: "Removed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PendingSettlement: "PendingSettlement", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallCharged: "ShortfallCharged", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ShortfallWaived: "ShortfallWaived", +} + +/** + * MACC properties + */ +@added(Versions.v2025_05_01_preview) +model MaccModelProperties { + /** + * Provisioning state of MACC as assigned by RPaaS. This indicates the last operation's status. For all practical purposes, this can be ignored. For current status of MACC resource, refer to MaccStatus. + */ + @visibility(Lifecycle.Read) + provisioningState?: MaccProvisioningState; + + /** + * Represents the current status of the MACC. + */ + status?: MaccStatus; + + /** + * Represents type of the object being operated on. Possible values are primary or contributor. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + entityType: MaccEntityType; + + /** + * Display name + */ + displayName?: string; + + /** + * Represents catalog UPN. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + productCode?: string; + + /** + * Fully-qualified identifier of the billing account where the MACC is applied. Present only for Enterprise Agreement customers. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId} + */ + billingAccountResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; + + /** + * Commitment towards the benefit. + */ + commitment?: Commitment; + + /** + * Must be start of month. Timestamp must be in the ISO date format YYYY-MM-DDT00:00:00Z. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startAt?: utcDateTime; + + /** + * Must be end of month. Timestamp must be in the ISO date format YYYY-MM-DDT23:59:59Z. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * This is the globally unique identifier of the MACC which will not change for the lifetime of the MACC. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + systemId?: string; + + /** + * Setting this to 'Enable' enables automatic shortfall charging when commitment is not met. + */ + automaticShortfall?: EnablementMode; + + /** + * Optional field to record suppression reason for automatic shortfall. + */ + automaticShortfallSuppressReason?: AutomaticShortfallSuppressReason; + + /** + * MACC shortfall + */ + shortfall?: Shortfall; + + /** + * List of milestones associated with this MACC. + */ + @OpenAPI.extension("x-ms-identifiers", #["milestoneId"]) + milestones?: MaccMilestone[]; + + /** + * This is the resource identifier of either the primary MACC or the contributor. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}. + */ + resourceId?: Azure.Core.armResourceIdentifier; + + /** + * Setting this to true means multi-entity. + */ + allowContributors?: boolean; + + /** + * Fully-qualified resource identifier of the primary MACC. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}. + */ + primaryResourceId?: Azure.Core.armResourceIdentifier; + + /** + * Fully-qualified billing account resource identifier of the primary MACC. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}. + */ + primaryBillingAccountResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; +} + +/** + * Optional field to record suppression reason for automatic shortfall. + */ +@added(Versions.v2025_05_01_preview) +model AutomaticShortfallSuppressReason { + /** + * Code for the suppression reason. + */ + code?: string; + + /** + * Message for suppression reason. + */ + message?: string; +} + +/** + * MACC shortfall + */ +@added(Versions.v2025_05_01_preview) +model Shortfall { + /** + * Represents catalog UPN. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + productCode?: string; + + /** + * Shortfall amount with grain. + */ + charge?: Commitment; + + /** + * Start DateTime. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startAt?: utcDateTime; + + /** + * End DateTime in UTC. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Fully-qualified resource identifier of the credits associated with the shortfall. + */ + resourceId?: Azure.Core.armResourceIdentifier; + + /** + * Points to BalanceVersion document that indicates the remaining commitment balance when the credit was created. + */ + balanceVersion?: float32; + + /** + * This is an identifier of the shortfall which will not change for its lifetime. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + systemId?: string; +} + +/** + * MACC milestone represents interim targets within the period of MACC. + */ +@added(Versions.v2025_05_01_preview) +model MaccMilestone { + /** + * Globally unique identifier for the milestone. Format: {guid} + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + milestoneId?: string; + + /** + * Commitment associated with this milestone. + */ + commitment?: Price; + + /** + * End date time for the milestone. Timestamp must be in the ISO date format YYYY-MM-DDT23:59:59Z. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Setting this to 'Enable' enables automatic shortfall invoicing when milestone commitment is not met. + */ + automaticShortfall?: EnablementMode; + + /** + * Optional field to record suppression reason for automatic shortfall. + */ + automaticShortfallSuppressReason?: AutomaticShortfallSuppressReason; + + /** + * Represents the current status of the Milestone. + */ + status?: MaccMilestoneStatus; + + /** + * Details of the shortfall associated with this milestone. + */ + shortfall?: Shortfall; +} + +/** + * Macc patch request + */ +@added(Versions.v2025_05_01_preview) +model MaccPatchRequest { + /** + * Macc patch request properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: MaccPatchRequestProperties; + + /** + * Resource tags. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Macc patch request properties + */ +@added(Versions.v2025_05_01_preview) +model MaccPatchRequestProperties { + /** + * Commitment towards the benefit. + */ + commitment?: Commitment; + + /** + * End DateTime in UTC. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Setting this to true means multi-entity. + */ + allowContributors?: boolean; + + /** + * Represents the enablement status of a feature or settings. + */ + automaticShortfall?: EnablementMode; + + /** + * Optional field to record suppression reason for automatic shortfall. + */ + automaticShortfallSuppressReason?: AutomaticShortfallSuppressReason; + + /** + * Display name + */ + displayName?: string; + + /** + * Represents the current status of the Milestone. + */ + status?: MaccMilestoneStatus; + + /** + * List of milestones to update or add. + */ + @OpenAPI.extension("x-ms-identifiers", #["milestoneId"]) + milestones?: MaccMilestone[]; + + /** + * Fully-qualified resource identifier of the primary MACC. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}. + */ + primaryResourceId?: Azure.Core.armResourceIdentifier; + + /** + * Fully-qualified billing account resource identifier of the primary MACC. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}. + */ + primaryBillingAccountResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; +} + +/** + * MACC list + */ +@added(Versions.v2025_05_01_preview) +model MaccList is Azure.Core.Page; + +/** + * MACC validate model + */ +@added(Versions.v2025_05_01_preview) +model MaccValidateModel extends BenefitValidateModel { + /** + * MACC validate properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: MaccModelProperties; + + /** + * Type of benefit to validate. This is used to determine the model type for validation. + */ + benefitType: "MACC"; +} + +/** + * Contributor list + */ +@added(Versions.v2025_05_01_preview) +model ContributorList is Azure.Core.Page; + +/** + * List MACCs under a billing account + */ +@added(Versions.v2025_05_01_preview) +model SellerResourceListRequest { + /** + * Request properties to list maccs under a billing account + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: SellerResourceListRequestProperties; +} + +/** + * Request properties to list maccs under a billing account + */ +@added(Versions.v2025_05_01_preview) +model SellerResourceListRequestProperties { + /** + * Fully-qualified billing account resource identifier where the benefit is applied. Present only for Enterprise Agreement customers. + */ + billingAccountResourceId: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; + + /** + * This is an OData expresssion to filter the list of MACCs based on the properties of MACC passed in the filter. + */ + $filter?: string; + + /** + * Setting it to true will return the list of contributors associated with the MACC. + */ + contributors?: boolean; + + /** + * Setting it to true will return the list of milestones associated with the MACC. + */ + milestones?: boolean; + + /** + * Fully-qualified resource identifier of the primary MACC. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}. + */ + primaryResourceId?: Azure.Core.armResourceIdentifier; +} + +/** + * Applicable MACC list + */ +@added(Versions.v2025_05_01_preview) +model ApplicableMaccList is Azure.Core.Page; + +/** + * Applicable MACC. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@added(Versions.v2025_05_01_preview) +model ApplicableMacc extends Azure.ResourceManager.CommonTypes.ProxyResource { + /** + * Applicable MACC properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: MaccModelProperties; +} + +/** + * Applicable Contributor list + */ +@added(Versions.v2025_05_01_preview) +model ApplicableContributorList is Azure.Core.Page; + +/** + * Applicable Contributor. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@added(Versions.v2025_05_01_preview) +model ApplicableContributor + extends Azure.ResourceManager.CommonTypes.ProxyResource { + /** + * Applicable Contributor properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: MaccModelProperties; +} + +// =================================================================== +// CREDITS MODELS - Added in 2025-05-01-preview +// =================================================================== + +/** + * Properties of a credit + */ +@added(Versions.v2025_05_01_preview) +model CreditProperties { + /** + * Status of the credit + */ + status?: CreditStatus; + + /** + * Product UPN for the credit type + */ + productCode?: string; + + /** + * The reason for the credit. Not required if not applicable. + */ + reason?: CreditReason; + + /** + * The entire investment amount for the credit contract, including currency and amount + */ + credit?: Commitment; + + /** + * Start DateTime. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startAt?: utcDateTime; + + /** + * End DateTime in UTC. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Credit breakdown item representing a milestone, line-item, or no-charge service + */ + policies?: CreditPolicies; + + /** + * Fully-qualified identifier of the billing account where the benefit is applied. Present only for Enterprise Agreement customers. + */ + billingAccountResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; + + /** + * Fully-qualified identifier of the billing profile where the benefit is applied. Present only for Field-led or Customer-led customers. + */ + @visibility(Lifecycle.Read) + billingProfileResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; + + /** + * Credit line-items/milestones/no-charge services breakdown + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + breakdown?: CreditBreakdownItem[]; + + /** + * Provisioning state + */ + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * System identifier + */ + systemId?: string; + + /** + * Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. Format is /providers/Microsoft.Billing/billingAccounts/{acctId:orgId} + */ + @visibility(Lifecycle.Read) + customerId?: string; + + /** + * Fully-qualified resource identifier of the resource. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/{benefitType}/{benefitName}. + */ + resourceId?: Azure.Core.armResourceIdentifier; +} + +/** + * Status of the credit + */ +@added(Versions.v2025_05_01_preview) +union CreditStatus { + string, + + /** + * Credit status is unknown + */ + Unknown: "Unknown", + + /** + * Credit is pending activation + */ + Pending: "Pending", + + /** + * Credit is active and available for use + */ + Active: "Active", + + /** + * Credit operation succeeded + */ + Succeeded: "Succeeded", + + /** + * Credit has been cancelled + */ + Canceled: "Canceled", + + /** + * Credit operation failed + */ + Failed: "Failed", + + /** + * Credit has expired + */ + Expired: "Expired", + + /** + * Credit has been fully consumed + */ + Exhausted: "Exhausted", + + /** + * Credit application has not started yet + */ + NotStarted: "NotStarted", +} + +/** + * Expiration policy of the Credit + */ +@added(Versions.v2025_05_01_preview) +union CreditExpirationPolicy { + string, + + /** + * No policy applied to the expiration of this credit + */ + None: "None", + + /** + * Billing profile is suspended when the credit expires + */ + SuspendBillingProfile: "SuspendBillingProfile", +} + +/** + * The reason for the credit. Not required if not applicable. + */ +@added(Versions.v2025_05_01_preview) +model CreditReason { + /** + * The reason code for credit. + */ + @visibility(Lifecycle.Read) + code?: float32; + + /** + * The free string description of the credit. + */ + @visibility(Lifecycle.Read) + description?: string; +} + +/** + * Credit breakdown item representing a milestone, line-item, or no-charge service + */ +@added(Versions.v2025_05_01_preview) +model CreditPolicies { + /** + * Redemption policy of the Credit + */ + redemption?: CreditRedemptionPolicy; + + /** + * Expiration policy of the Credit + */ + expiration?: CreditExpirationPolicy; +} + +/** + * Redemption policy of the Credit + */ +@added(Versions.v2025_05_01_preview) +union CreditRedemptionPolicy { + string, + + /** + * Redemption policy is not applicable for this credit + */ + NotApplicable: "NotApplicable", + + /** + * Credit is automatically redeemed + */ + AutoRedeem: "AutoRedeem", + + /** + * Credit is manually redeemed + */ + ManualRedeem: "ManualRedeem", +} + +/** + * Credit breakdown item representing a milestone, line-item, or no-charge service + */ +@added(Versions.v2025_05_01_preview) +model CreditBreakdownItem { + /** + * Allocation details including currency and amount for this breakdown item + */ + allocation?: Commitment; + + /** + * Start DateTime. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startAt?: utcDateTime; + + /** + * End DateTime in UTC. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Key-value pairs for additional parameters and metadata + */ + @OpenAPI.extension("x-ms-identifiers", #["key"]) + dimensions?: CreditDimension[]; +} + +/** + * Key-value pair for additional credit parameters and metadata + */ +@added(Versions.v2025_05_01_preview) +model CreditDimension { + /** + * The dimension key (e.g., productFamily, description, creditType) + */ + key?: string; + + /** + * The dimension value + */ + value?: string; +} + +/** + * Credit patch request + */ +@added(Versions.v2025_05_01_preview) +model CreditPatchRequest { + /** + * Resource tags + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; + + /** + * Credit patch properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: CreditPatchProperties; +} + +/** + * Credit patch properties + */ +@added(Versions.v2025_05_01_preview) +model CreditPatchProperties { + /** + * The entire investment amount for the credit contract, including currency and amount. Only amount can be modified. + */ + credit?: Commitment; + + /** + * End DateTime in UTC. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Credit line-items/milestones/no-charge services breakdown. Entire breakdown will be replaced in a PATCH operation. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + breakdown?: CreditBreakdownItem[]; +} + +/** + * List of credits + */ +@added(Versions.v2025_05_01_preview) +model CreditsList is Azure.Core.Page; + +/** + * Properties of a credit source + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +@added(Versions.v2025_05_01_preview) +model CreditSourceProperties { + /** + * Status of the credit + */ + status?: CreditStatus; + + /** + * The uri of the resource impacted which lead to the grant of the credit. + */ + sourceResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.BillingBenefits/credits"; + } + ]>; + + /** + * The billing period of the impact for the resource. Format YYYYMM + */ + impactedBillingPeriod?: string; + + /** + * Commitment towards the benefit. + */ + credit?: Commitment; +} + +/** + * Credit patch request + */ +@added(Versions.v2025_05_01_preview) +model CreditSourcePatchRequest { + /** + * Resource Tags + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + tags?: Record; +} + +/** + * List of credit sources + */ +@added(Versions.v2025_05_01_preview) +model CreditSourcesList is Azure.Core.Page; + +/** + * Credits validate model + */ +@added(Versions.v2025_05_01_preview) +model CreditsValidateModel extends BenefitValidateModel { + /** + * Credits validate properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: Credit; + + /** + * Type of benefit to validate. This is used to determine the model type for validation. + */ + benefitType: "Credits"; +} + +// =================================================================== +// CONDITIONAL CREDITS MODELS - Added in 2025-05-01-preview +// =================================================================== + +/** + * Properties belonging to conditional credits. + */ +@discriminator("entityType") +@added(Versions.v2025_05_01_preview) +model ConditionalCreditProperties { + /** + * Type of conditional credit entity + */ + entityType: ConditionalCreditEntityType; + + /** + * Display name for the conditional credit + */ + displayName?: string; + + /** + * The billing account resource ID + */ + @visibility(Lifecycle.Read) + billingAccountResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; + + /** + * The provisioning state of the resource + */ + @visibility(Lifecycle.Read) + provisioningState?: ConditionalCreditsProvisioningState; + + /** + * The status of the conditional credit + */ + @visibility(Lifecycle.Read) + status?: ConditionalCreditStatus; + + /** + * Start date of the conditional credit + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startAt?: utcDateTime; + + /** + * End date of the conditional credit (derived from last milestone) + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Product code for the conditional credit + */ + productCode?: string; + + /** + * Fully-qualified identifier of the benefit under applicable benefit list. + */ + @visibility(Lifecycle.Read) + benefitResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.BillingBenefits/*"; + } + ]>; +} + +/** + * Type of conditional credit entity + */ +@added(Versions.v2025_05_01_preview) +union ConditionalCreditEntityType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Primary: "Primary", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Contributor: "Contributor", +} + +/** + * The provisioning state of the resource + */ +@added(Versions.v2025_05_01_preview) +union ConditionalCreditsProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", +} + +/** + * The status of the conditional credit + */ +@added(Versions.v2025_05_01_preview) +union ConditionalCreditStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Pending: "Pending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PendingSettlement: "PendingSettlement", +} + +/** + * Conditional credit patch request + */ +@added(Versions.v2025_05_01_preview) +model ConditionalCreditPatchRequest { + /** + * Conditional credit patch request properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ConditionalCreditPatchRequestProperties; + + /** + * Resource tags. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Conditional credit patch request properties + */ +@added(Versions.v2025_05_01_preview) +model ConditionalCreditPatchRequestProperties { + /** + * Display name for the conditional credit + */ + displayName?: string; + + /** + * Updated milestones list (only applicable for primary conditional credits) + */ + milestones?: ConditionalCreditMilestone[]; +} + +/** + * Milestone definition within a conditional credit + */ +alias ConditionalCreditMilestone = ConditionalCreditMilestoneBase; + +/** + * Base milestone definition for conditional credits + */ +@added(Versions.v2025_05_01_preview) +model ConditionalCreditMilestoneBase { + /** + * Unique identifier for the milestone + */ + milestoneId?: string; + + /** + * Display name for the milestone + */ + name?: string; + + /** + * Current status of the conditional credit milestone + */ + @visibility(Lifecycle.Read) + status?: ConditionalCreditMilestoneStatus; + + /** + * End date for this milestone + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Spend target for this milestone + */ + spendTarget?: Price; + + /** + * Award details for this milestone (only present for primary conditional credits) + */ + award?: Award; +} + +/** + * Current status of the conditional credit milestone + */ +@added(Versions.v2025_05_01_preview) +union ConditionalCreditMilestoneStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Scheduled: "Scheduled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Missed: "Missed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PendingSettlement: "PendingSettlement", +} + +/** + * Award details for milestone completion + */ +@added(Versions.v2025_05_01_preview) +model Award { + /** + * Credit amount to be awarded + */ + credit?: Commitment; + + /** + * Start date when the credit becomes effective + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startAt?: utcDateTime; + + /** + * End date when the credit expires + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endAt?: utcDateTime; + + /** + * Resource ID for the awarded credit. + */ + @visibility(Lifecycle.Read) + resourceId?: Azure.Core.armResourceIdentifier; + + /** + * This is the globally unique identifier of the credit which will not change for its lifetime. + */ + @visibility(Lifecycle.Read) + systemId?: string; + + /** + * Points to BalanceVersion document that indicates the remaining commitment balance when the credit was created. + */ + @visibility(Lifecycle.Read) + balanceVersion?: float32; +} + +/** + * List of conditional credits + */ +@added(Versions.v2025_05_01_preview) +model ConditionalCreditList is Azure.Core.Page; + +/** + * Properties for primary conditional credit. + */ +@added(Versions.v2025_05_01_preview) +model PrimaryConditionalCreditProperties extends ConditionalCreditProperties { + /** + * System identifier shared between primary and contributor conditional credits representing the same conditional credit program + */ + systemId: string; + + /** + * Whether this conditional credit allows contributor billing accounts + */ + allowContributors?: EnablementMode; + + /** + * List of milestones for this conditional credit (must include awards) + */ + milestones?: ConditionalCreditMilestone[]; + + /** + * Type of conditional credit entity + */ + entityType: "Primary"; +} + +/** + * Properties for contributor conditional credit. + */ +@added(Versions.v2025_05_01_preview) +model ContributorConditionalCreditProperties + extends ConditionalCreditProperties { + /** + * Resource ID of the primary conditional credit (required for contributors) + */ + primaryResourceId: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.BillingBenefits/conditionalCredits"; + } + ]>; + + /** + * System identifier shared between primary and contributor conditional credits representing the same conditional credit program + */ + systemId: string; + + /** + * List of milestones copied from primary conditional credit (excludes award details) + */ + @visibility(Lifecycle.Read) + milestones?: ContributorConditionalCreditMilestone[]; + + /** + * Fully-qualified billing account resource identifier of the primary CACO. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}. + */ + primaryBillingAccountResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.Billing/billingAccounts"; + } + ]>; + + /** + * Type of conditional credit entity + */ + entityType: "Contributor"; +} + +/** + * Milestone definition for contributor conditional credit (excludes award details) + */ +alias ContributorConditionalCreditMilestone = ConditionalCreditMilestoneBase; + +/** + * Conditional Credits validate model + */ +@added(Versions.v2025_05_01_preview) +model ConditionalCreditsValidateModel extends BenefitValidateModel { + /** + * Conditional Credits validate properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + properties?: ConditionalCreditProperties; + + /** + * Type of benefit to validate. This is used to determine the model type for validation. + */ + benefitType: "ConditionalCredits"; +} diff --git a/specification/billingbenefits/BillingBenefits.Management/routes.tsp b/specification/billingbenefits/BillingBenefits.Management/routes.tsp index 5c2e524e6bc3..52abb75e61fe 100644 --- a/specification/billingbenefits/BillingBenefits.Management/routes.tsp +++ b/specification/billingbenefits/BillingBenefits.Management/routes.tsp @@ -5,11 +5,13 @@ import "@typespec/rest"; import "./models.tsp"; import "@azure-tools/typespec-azure-resource-manager"; import "@typespec/openapi"; +import "@typespec/versioning"; using TypeSpec.Rest; using TypeSpec.Http; using Azure.ResourceManager; using TypeSpec.OpenAPI; +using TypeSpec.Versioning; namespace Microsoft.BillingBenefits; @@ -93,7 +95,275 @@ interface DiscountsOperationGroup { #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @autoRoute @action("validate") +@removed(Versions.v2025_05_01_preview) +@sharedRoute +@renamedFrom(Versions.v2025_05_01_preview, "validate") +@OpenAPI.extension( + "x-ms-examples", + #{ + SavingsPlanValidatePurchase: #{ + $ref: "./examples/SavingsPlanValidatePurchase.json", + }, + } +) op validatePurchase is ArmProviderActionSync< Request = SavingsPlanPurchaseValidateRequest, Response = SavingsPlanValidateResponse >; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +@added(Versions.v2025_05_01_preview) +interface BenefitOperationGroup { + /** + * Validate any benefit. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @autoRoute + @OpenAPI.extension( + "x-ms-examples", + #{ + SavingsPlanValidatePurchase: #{ + $ref: "./examples/SavingsPlanValidatePurchase.json", + }, + MaccValidateCreate: #{ $ref: "./examples/MaccValidateCreate.json" }, + MaccValidateCreateContributor: #{ + $ref: "./examples/MaccValidateCreateContributor.json", + }, + MaccValidateCreateMultiEntity: #{ + $ref: "./examples/MaccValidateCreateMultiEntity.json", + }, + MaccValidateCreateBackfilledMacc: #{ + $ref: "./examples/MaccValidateCreateBackfilledMacc.json", + }, + MaccValidateCreateNewMaccWithMilestone: #{ + $ref: "./examples/MaccValidateCreateNewMaccWithMilestone.json", + }, + MaccValidateCreateMilestonesOnExistingMacc: #{ + $ref: "./examples/MaccValidateCreateMilestonesOnExistingMacc.json", + }, + MaccValidateUpdate: #{ $ref: "./examples/MaccValidateUpdate.json" }, + MaccValidateUpdateCommitment: #{ + $ref: "./examples/MaccValidateUpdateCommitment.json", + }, + MaccValidateUpdateEndAt: #{ + $ref: "./examples/MaccValidateUpdateEndAt.json", + }, + MaccValidateUpdateContributorRule: #{ + $ref: "./examples/MaccValidateUpdateContributorRule.json", + }, + MaccValidateUpdateDisplayName: #{ + $ref: "./examples/MaccValidateUpdateDisplayName.json", + }, + MaccValidateUpdateCommitmentEndAtContributorRule: #{ + $ref: "./examples/MaccValidateUpdateCommitmentEndAtContributorRule.json", + }, + MaccValidateUpdateMilestoneCommitment: #{ + $ref: "./examples/MaccValidateUpdateMilestoneCommitment.json", + }, + MaccValidateUpdateMilestoneEndDate: #{ + $ref: "./examples/MaccValidateUpdateMilestoneEndDate.json", + }, + MaccValidateUpdateMaccAndMilestoneCommitment: #{ + $ref: "./examples/MaccValidateUpdateMaccAndMilestoneCommitment.json", + }, + MaccValidateUpdateMaccAndMilestoneEndDate: #{ + $ref: "./examples/MaccValidateUpdateMaccAndMilestoneEndDate.json", + }, + MaccValidateUpdateSuppressShortfall: #{ + $ref: "./examples/MaccValidateUpdateSuppressShortfall.json", + }, + MaccValidateUpdateUnsuppressShortfall: #{ + $ref: "./examples/MaccValidateUpdateUnsuppressShortfall.json", + }, + MaccValidateUpdateSuppressShortfallOnMilestone: #{ + $ref: "./examples/MaccValidateUpdateSuppressShortfallOnMilestone.json", + }, + MaccValidateUpdateUnsuppressShortfallOnMilestone: #{ + $ref: "./examples/MaccValidateUpdateUnsuppressShortfallOnMilestone.json", + }, + MaccValidateUpdateRemoveMilestones: #{ + $ref: "./examples/MaccValidateUpdateRemoveMilestones.json", + }, + MaccValidateUpdateContributor: #{ + $ref: "./examples/MaccValidateUpdateContributor.json", + }, + MaccValidateCancel: #{ $ref: "./examples/MaccValidateCancel.json" }, + MaccValidateCancelWithMilestones: #{ + $ref: "./examples/MaccValidateCancelWithMilestones.json", + }, + MaccValidateWriteOffWithMilestones: #{ + $ref: "./examples/MaccValidateWriteOffWithMilestones.json", + }, + } + ) + @action("validate") + @added(Versions.v2025_05_01_preview) + @sharedRoute + validate is ArmProviderActionSync< + Request = BenefitValidateRequest, + Response = BenefitValidateResponse + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ContributorsOperationGroup { + /** + * List contributors under applicable MACCs for a given billing account. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + @route("/{scope}/providers/Microsoft.BillingBenefits/applicableMaccs/{systemId}/providers/Microsoft.BillingBenefits/applicableContributors") + @get + @list + @OpenAPI.extension( + "x-ms-examples", + #{ + ContributorsListFromApplicableMacc: #{ + $ref: "./examples/ContributorsListFromApplicableMacc.json", + }, + } + ) + @OpenAPI.extension("x-ms-pageable", #{ nextLinkName: "nextLink" }) + @added(Versions.v2025_05_01_preview) + listFromApplicableMacc( + ...ApiVersionParameter, + + /** + * The scope at which the benefits are listed. + */ + @path + scope: string, + + /** + * The system identifier of the applicable MACC. + */ + @path + systemId: string, + ): ArmResponse | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface SellerResourceOperationGroup { + /** + * List maccs by billing account + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @autoRoute + @action("listSellerResources") + @OpenAPI.extension( + "x-ms-examples", + #{ + SellerViewContributors: #{ + $ref: "./examples/MaccSellerViewContributors.json", + }, + SellerViewContributorsWithMilestones: #{ + $ref: "./examples/MaccSellerViewContributorsWithMilestones.json", + }, + SellerViewContributorsWithMilestonesAndShortfall: #{ + $ref: "./examples/MaccSellerViewContributorsWithMilestonesAndShortfall.json", + }, + SellerViewNoContributors: #{ + $ref: "./examples/MaccSellerViewNoContributors.json", + }, + SellerViewWithMilestonesNoContributors: #{ + $ref: "./examples/MaccSellerViewWithMilestonesNoContributors.json", + }, + } + ) + @added(Versions.v2025_05_01_preview) + list is ArmProviderActionSync< + Request = SellerResourceListRequest, + Response = { + @added(Versions.v2025_05_01_preview) + @bodyRoot + _: Macc[]; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface MaccsOperationGroup { + /** + * List applicable maccs for the provided scope. Currently supported scopes: BillingAccountResourceId + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @route("/{scope}/providers/Microsoft.BillingBenefits/applicableMaccs") + @get + @list + @OpenAPI.extension( + "x-ms-examples", + #{ ApplicableMaccsList: #{ $ref: "./examples/ApplicableMaccsList.json" } } + ) + @OpenAPI.extension("x-ms-pageable", #{ nextLinkName: "nextLink" }) + @added(Versions.v2025_05_01_preview) + list( + ...ApiVersionParameter, + + /** + * The scope at which the benefits are listed. + */ + @path + scope: string, + ): ArmResponse | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface CreditsOperationGroup { + /** + * List applicable credits for the provided scope. Currently supported scopes: BillingAccountResourceId + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @route("/{scope}/providers/Microsoft.BillingBenefits/applicableCredits") + @get + @list + @OpenAPI.extension( + "x-ms-examples", + #{ + CreditSourcesListByCredit: #{ + $ref: "./examples/CreditListApplicableCredits.json", + }, + } + ) + @OpenAPI.extension("x-ms-pageable", #{ nextLinkName: "nextLink" }) + @added(Versions.v2025_05_01_preview) + listApplicable( + ...ApiVersionParameter, + + /** + * The scope at which the benefits are listed. + */ + @path + scope: string, + ): ArmResponse | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ConditionalCreditsOperationGroup { + /** + * List conditional credits that are applicable for a given scope. Currently supported scopes: billing accounts + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @route("/{scope}/providers/Microsoft.BillingBenefits/applicableConditionalCredits") + @get + @list + @OpenAPI.extension( + "x-ms-examples", + #{ + ConditionalCreditScopeList: #{ + $ref: "./examples/ApplicableConditionalCreditList.json", + }, + } + ) + @OpenAPI.extension("x-ms-pageable", #{ nextLinkName: "nextLink" }) + @added(Versions.v2025_05_01_preview) + scopeList( + ...ApiVersionParameter, + + /** + * The scope at which the benefits are listed. + */ + @path + scope: string, + ): ArmResponse | ErrorResponse; +} diff --git a/specification/billingbenefits/cspell.yaml b/specification/billingbenefits/cspell.yaml new file mode 100644 index 000000000000..25b6afb749e2 --- /dev/null +++ b/specification/billingbenefits/cspell.yaml @@ -0,0 +1,8 @@ +import: + - ../../cspell.yaml +words: + - Unsuppress + - maccs + - Maccs + - CACO + \ No newline at end of file diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/billingbenefits.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/billingbenefits.json new file mode 100644 index 000000000000..375067298857 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/billingbenefits.json @@ -0,0 +1,7509 @@ +{ + "swagger": "2.0", + "info": { + "title": "Billing benefits RP", + "version": "2025-05-01-preview", + "description": "Azure Benefits RP let users create and manage benefits like savings plan.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "SavingsPlanOrderAliasModels" + }, + { + "name": "SavingsPlanOrderModels" + }, + { + "name": "SavingsPlanModels" + }, + { + "name": "ReservationOrderAliasResponses" + }, + { + "name": "Discounts" + }, + { + "name": "Maccs" + }, + { + "name": "Contributors" + }, + { + "name": "Credits" + }, + { + "name": "ConditionalCredits" + }, + { + "name": "CreditSources" + } + ], + "paths": { + "/{scope}/providers/Microsoft.BillingBenefits/applicableConditionalCredits": { + "get": { + "operationId": "ConditionalCredits_ScopeList", + "description": "List conditional credits that are applicable for a given scope. Currently supported scopes: billing accounts", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope at which the benefits are listed.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ConditionalCreditList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditScopeList": { + "$ref": "./examples/ApplicableConditionalCreditList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.BillingBenefits/applicableCredits": { + "get": { + "operationId": "Credits_ListApplicable", + "description": "List applicable credits for the provided scope. Currently supported scopes: BillingAccountResourceId", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope at which the benefits are listed.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CreditsList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditSourcesListByCredit": { + "$ref": "./examples/CreditListApplicableCredits.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.BillingBenefits/applicableDiscounts": { + "get": { + "operationId": "Discounts_ScopeList", + "description": "List discounts that are applicable for a given scope. Currently supported scopes: billing accounts", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope at which the benefits are listed.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DiscountList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountScopeList": { + "$ref": "./examples/ApplicableDiscountsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.BillingBenefits/applicableMaccs": { + "get": { + "operationId": "ApplicableMaccs_List", + "description": "List applicable maccs for the provided scope. Currently supported scopes: BillingAccountResourceId", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope at which the benefits are listed.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicableMaccList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ApplicableMaccsList": { + "$ref": "./examples/ApplicableMaccsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.BillingBenefits/applicableMaccs/{systemId}/providers/Microsoft.BillingBenefits/applicableContributors": { + "get": { + "operationId": "Contributors_ListFromApplicableMacc", + "description": "List contributors under applicable MACCs for a given billing account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope at which the benefits are listed.", + "required": true, + "type": "string" + }, + { + "name": "systemId", + "in": "path", + "description": "The system identifier of the applicable MACC.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ApplicableContributorList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ContributorsListFromApplicableMacc": { + "$ref": "./examples/ContributorsListFromApplicableMacc.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.BillingBenefits/listSellerResources": { + "post": { + "operationId": "SellerResource_List", + "description": "List maccs by billing account", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/SellerResourceListRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Macc" + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SellerViewContributors": { + "$ref": "./examples/MaccSellerViewContributors.json" + }, + "SellerViewContributorsWithMilestones": { + "$ref": "./examples/MaccSellerViewContributorsWithMilestones.json" + }, + "SellerViewContributorsWithMilestonesAndShortfall": { + "$ref": "./examples/MaccSellerViewContributorsWithMilestonesAndShortfall.json" + }, + "SellerViewNoContributors": { + "$ref": "./examples/MaccSellerViewNoContributors.json" + }, + "SellerViewWithMilestonesNoContributors": { + "$ref": "./examples/MaccSellerViewWithMilestonesNoContributors.json" + } + } + } + }, + "/providers/Microsoft.BillingBenefits/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "OperationsGet": { + "$ref": "./examples/OperationsGet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.BillingBenefits/reservationOrderAliases/{reservationOrderAliasName}": { + "get": { + "operationId": "ReservationOrderAlias_Get", + "tags": [ + "ReservationOrderAliasResponses" + ], + "description": "Get a reservation order alias.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "reservationOrderAliasName", + "in": "path", + "description": "Name of the reservation order alias", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ReservationOrderAliasResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ReservationOrderAliasGet": { + "$ref": "./examples/ReservationOrderAliasGet.json" + } + } + }, + "put": { + "operationId": "ReservationOrderAlias_Create", + "tags": [ + "ReservationOrderAliasResponses" + ], + "description": "Create a reservation order alias.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "reservationOrderAliasName", + "in": "path", + "description": "Name of the reservation order alias", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for creating a reservation order alias", + "required": true, + "schema": { + "$ref": "#/definitions/ReservationOrderAliasRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReservationOrderAliasResponse" + } + }, + "201": { + "description": "Resource 'ReservationOrderAliasResponse' create operation succeeded", + "schema": { + "$ref": "#/definitions/ReservationOrderAliasResponse" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ReservationOrderAliasCreate": { + "$ref": "./examples/ReservationOrderAliasCreate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/ReservationOrderAliasResponse" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrderAliases/{savingsPlanOrderAliasName}": { + "get": { + "operationId": "SavingsPlanOrderAlias_Get", + "tags": [ + "SavingsPlanOrderAliasModels" + ], + "description": "Get a savings plan.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderAliasName", + "in": "path", + "description": "Name of the savings plan order alias", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderAliasModel" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanOrderAliasGet": { + "$ref": "./examples/SavingsPlanOrderAliasGet.json" + } + } + }, + "put": { + "operationId": "SavingsPlanOrderAlias_Create", + "tags": [ + "SavingsPlanOrderAliasModels" + ], + "description": "Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851", + "externalDocs": { + "url": "https://go.microsoft.com/fwlink/?linkid=2215851/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderAliasName", + "in": "path", + "description": "Name of the savings plan order alias", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for creating a savings plan order alias", + "required": true, + "schema": { + "$ref": "#/definitions/SavingsPlanOrderAliasModel" + } + } + ], + "responses": { + "200": { + "description": "Resource 'SavingsPlanOrderAliasModel' update operation succeeded", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderAliasModel" + } + }, + "201": { + "description": "Resource 'SavingsPlanOrderAliasModel' create operation succeeded", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderAliasModel" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanOrderAliasCreate": { + "$ref": "./examples/SavingsPlanOrderAliasCreate.json" + }, + "SavingsPlanOrderAliasCreateSingleScope": { + "$ref": "./examples/SavingsPlanOrderAliasCreateSingleScope.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/SavingsPlanOrderAliasModel" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrders": { + "get": { + "operationId": "SavingsPlanOrder_List", + "tags": [ + "SavingsPlanOrderModels" + ], + "description": "List all Savings plan orders.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderModelList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanOrderList": { + "$ref": "./examples/SavingsPlanOrderList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}": { + "get": { + "operationId": "SavingsPlanOrder_Get", + "tags": [ + "SavingsPlanOrderModels" + ], + "description": "Get a savings plan order.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Order ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the detail information of some properties.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderModel" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanOrderGet": { + "$ref": "./examples/SavingsPlanOrderGet.json" + }, + "SavingsPlanOrderWithExpandedPaymentsGet": { + "$ref": "./examples/SavingsPlanOrderExpandedGet.json" + } + } + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/elevate": { + "post": { + "operationId": "SavingsPlanOrder_Elevate", + "tags": [ + "SavingsPlanOrderModels" + ], + "description": "Elevate as owner on savings plan order based on billing permissions.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Order ID of the savings plan", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/RoleAssignmentEntity" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanOrderElevate": { + "$ref": "./examples/SavingsPlanOrderElevate.json" + } + } + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans": { + "get": { + "operationId": "SavingsPlan_List", + "tags": [ + "SavingsPlanModels" + ], + "description": "List savings plans in an order.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Order ID of the savings plan", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanModelList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlansInOrderList": { + "$ref": "./examples/SavingsPlansInOrderList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}": { + "get": { + "operationId": "SavingsPlan_Get", + "tags": [ + "SavingsPlanModels" + ], + "description": "Get savings plan.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Order ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "savingsPlanId", + "in": "path", + "description": "ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the detail information of some properties.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanModel" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanItemGet": { + "$ref": "./examples/SavingsPlanItemGet.json" + }, + "SavingsPlanItemWithExpandedRenewPropertiesGet": { + "$ref": "./examples/SavingsPlanItemExpandedGet.json" + } + } + }, + "patch": { + "operationId": "SavingsPlan_Update", + "tags": [ + "SavingsPlanModels" + ], + "description": "Update savings plan.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Order ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "savingsPlanId", + "in": "path", + "description": "ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Request body for patching a savings plan order alias", + "required": true, + "schema": { + "$ref": "#/definitions/SavingsPlanUpdateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanModel" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "404": { + "description": "The Azure resource is not found" + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanUpdate": { + "$ref": "./examples/SavingsPlanUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/SavingsPlanModel" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/validate": { + "post": { + "operationId": "SavingsPlan_ValidateUpdate", + "tags": [ + "SavingsPlanModels" + ], + "description": "Validate savings plan patch.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Order ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "savingsPlanId", + "in": "path", + "description": "ID of the savings plan", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Request body for validating a savings plan patch request", + "required": true, + "schema": { + "$ref": "#/definitions/SavingsPlanUpdateValidateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SavingsPlanValidateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanValidateUpdate": { + "$ref": "./examples/SavingsPlanValidateUpdate.json" + } + } + } + }, + "/providers/Microsoft.BillingBenefits/savingsPlans": { + "get": { + "operationId": "SavingsPlan_ListAll", + "description": "List savings plans.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. Reservation properties include sku/name, properties/{appliedScopeType, archived, displayName, displayProvisioningState, effectiveDateTime, expiryDate, provisioningState, quantity, renew, reservedResourceType, term, userFriendlyAppliedScopeType, userFriendlyRenewState}", + "required": false, + "type": "string" + }, + { + "name": "$orderby", + "in": "query", + "description": "May be used to sort order by reservation properties.", + "required": false, + "type": "string" + }, + { + "name": "refreshSummary", + "in": "query", + "description": "To indicate whether to refresh the roll up counts of the savings plans group by provisioning states", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "in": "query", + "description": "The number of savings plans to skip from the list before returning results", + "required": false, + "type": "number", + "format": "float" + }, + { + "name": "selectedState", + "in": "query", + "description": "The selected provisioning state", + "required": false, + "type": "string" + }, + { + "name": "take", + "in": "query", + "description": "To number of savings plans to return", + "required": false, + "type": "number", + "format": "float" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/SavingsPlanModelListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlansList": { + "$ref": "./examples/SavingsPlansList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.BillingBenefits/validate": { + "post": { + "operationId": "Benefit_Validate", + "description": "Validate any benefit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitValidateRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitValidateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MaccValidateCancel": { + "$ref": "./examples/MaccValidateCancel.json" + }, + "MaccValidateCancelWithMilestones": { + "$ref": "./examples/MaccValidateCancelWithMilestones.json" + }, + "MaccValidateCreate": { + "$ref": "./examples/MaccValidateCreate.json" + }, + "MaccValidateCreateBackfilledMacc": { + "$ref": "./examples/MaccValidateCreateBackfilledMacc.json" + }, + "MaccValidateCreateContributor": { + "$ref": "./examples/MaccValidateCreateContributor.json" + }, + "MaccValidateCreateMilestonesOnExistingMacc": { + "$ref": "./examples/MaccValidateCreateMilestonesOnExistingMacc.json" + }, + "MaccValidateCreateMultiEntity": { + "$ref": "./examples/MaccValidateCreateMultiEntity.json" + }, + "MaccValidateCreateNewMaccWithMilestone": { + "$ref": "./examples/MaccValidateCreateNewMaccWithMilestone.json" + }, + "MaccValidateUpdate": { + "$ref": "./examples/MaccValidateUpdate.json" + }, + "MaccValidateUpdateCommitment": { + "$ref": "./examples/MaccValidateUpdateCommitment.json" + }, + "MaccValidateUpdateCommitmentEndAtContributorRule": { + "$ref": "./examples/MaccValidateUpdateCommitmentEndAtContributorRule.json" + }, + "MaccValidateUpdateContributor": { + "$ref": "./examples/MaccValidateUpdateContributor.json" + }, + "MaccValidateUpdateContributorRule": { + "$ref": "./examples/MaccValidateUpdateContributorRule.json" + }, + "MaccValidateUpdateDisplayName": { + "$ref": "./examples/MaccValidateUpdateDisplayName.json" + }, + "MaccValidateUpdateEndAt": { + "$ref": "./examples/MaccValidateUpdateEndAt.json" + }, + "MaccValidateUpdateMaccAndMilestoneCommitment": { + "$ref": "./examples/MaccValidateUpdateMaccAndMilestoneCommitment.json" + }, + "MaccValidateUpdateMaccAndMilestoneEndDate": { + "$ref": "./examples/MaccValidateUpdateMaccAndMilestoneEndDate.json" + }, + "MaccValidateUpdateMilestoneCommitment": { + "$ref": "./examples/MaccValidateUpdateMilestoneCommitment.json" + }, + "MaccValidateUpdateMilestoneEndDate": { + "$ref": "./examples/MaccValidateUpdateMilestoneEndDate.json" + }, + "MaccValidateUpdateRemoveMilestones": { + "$ref": "./examples/MaccValidateUpdateRemoveMilestones.json" + }, + "MaccValidateUpdateSuppressShortfall": { + "$ref": "./examples/MaccValidateUpdateSuppressShortfall.json" + }, + "MaccValidateUpdateSuppressShortfallOnMilestone": { + "$ref": "./examples/MaccValidateUpdateSuppressShortfallOnMilestone.json" + }, + "MaccValidateUpdateUnsuppressShortfall": { + "$ref": "./examples/MaccValidateUpdateUnsuppressShortfall.json" + }, + "MaccValidateUpdateUnsuppressShortfallOnMilestone": { + "$ref": "./examples/MaccValidateUpdateUnsuppressShortfallOnMilestone.json" + }, + "MaccValidateWriteOffWithMilestones": { + "$ref": "./examples/MaccValidateWriteOffWithMilestones.json" + }, + "SavingsPlanValidatePurchase": { + "$ref": "./examples/SavingsPlanValidatePurchase.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BillingBenefits/conditionalCredits": { + "get": { + "operationId": "ConditionalCredits_ListBySubscription", + "tags": [ + "ConditionalCredits" + ], + "description": "List conditional credits by subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ConditionalCreditList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditsListBySubscription": { + "$ref": "./examples/ConditionalCreditsListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BillingBenefits/credits": { + "get": { + "operationId": "Credits_ListBySubscription", + "tags": [ + "Credits" + ], + "description": "List credits under a subscription from primary service tenant.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CreditsList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditsListBySubscription": { + "$ref": "./examples/CreditsListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BillingBenefits/discounts": { + "get": { + "operationId": "Discounts_SubscriptionList", + "tags": [ + "Discounts" + ], + "description": "List discounts at subscription level", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DiscountList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountSubscriptionList": { + "$ref": "./examples/DiscountList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BillingBenefits/maccs": { + "get": { + "operationId": "Maccs_ListBySubscription", + "tags": [ + "Maccs" + ], + "description": "List MACCs under a subscription from primary service tenant.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MaccList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MaccsWithMilestones_ListBySubscription": { + "$ref": "./examples/MaccsWithMilestonesListBySubscription.json" + }, + "Maccs_ListBySubscription": { + "$ref": "./examples/MaccsListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/conditionalCredits": { + "get": { + "operationId": "ConditionalCredits_ListByResourceGroup", + "tags": [ + "ConditionalCredits" + ], + "description": "List conditional credits by resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ConditionalCreditList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditsListByResourceGroup": { + "$ref": "./examples/ConditionalCreditsListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/conditionalCredits/{conditionalCreditName}": { + "get": { + "operationId": "ConditionalCredits_Get", + "tags": [ + "ConditionalCredits" + ], + "description": "Get a conditional credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "conditionalCreditName", + "in": "path", + "description": "Name of the conditional credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ConditionalCredit" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditGet": { + "$ref": "./examples/ConditionalCreditGet.json" + } + } + }, + "put": { + "operationId": "ConditionalCredits_CreateOrUpdate", + "tags": [ + "ConditionalCredits" + ], + "description": "Create or update a conditional credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "conditionalCreditName", + "in": "path", + "description": "Name of the conditional credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for creating a conditional credit", + "required": true, + "schema": { + "$ref": "#/definitions/ConditionalCredit" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ConditionalCredit' update operation succeeded", + "schema": { + "$ref": "#/definitions/ConditionalCredit" + } + }, + "201": { + "description": "Resource 'ConditionalCredit' create operation succeeded", + "schema": { + "$ref": "#/definitions/ConditionalCredit" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditCreateContributor": { + "$ref": "./examples/ConditionalCreditCreateContributor.json" + }, + "ConditionalCreditCreatePrimary": { + "$ref": "./examples/ConditionalCreditCreatePrimary.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/ConditionalCredit" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "ConditionalCredits_Update", + "tags": [ + "ConditionalCredits" + ], + "description": "Update a conditional credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "conditionalCreditName", + "in": "path", + "description": "Name of the conditional credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for updating a conditional credit", + "required": true, + "schema": { + "$ref": "#/definitions/ConditionalCreditPatchRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ConditionalCredit" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditUpdate": { + "$ref": "./examples/ConditionalCreditUpdate.json" + }, + "ConditionalCreditUpdateContributor": { + "$ref": "./examples/ConditionalCreditUpdateContributor.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "ConditionalCredits_Delete", + "tags": [ + "ConditionalCredits" + ], + "description": "Delete a conditional credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "conditionalCreditName", + "in": "path", + "description": "Name of the conditional credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ConditionalCreditDelete": { + "$ref": "./examples/ConditionalCreditDelete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits": { + "get": { + "operationId": "Credits_ListByResourceGroup", + "tags": [ + "Credits" + ], + "description": "List Credits under a resource group from primary service admin.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CreditsList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditsListByResourceGroup": { + "$ref": "./examples/CreditsListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}": { + "get": { + "operationId": "Credits_Get", + "tags": [ + "Credits" + ], + "description": "Get a credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Credit" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditGet": { + "$ref": "./examples/CreditGet.json" + } + } + }, + "put": { + "operationId": "Credits_Create", + "tags": [ + "Credits" + ], + "description": "Create a credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Credit create request", + "required": true, + "schema": { + "$ref": "#/definitions/Credit" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Credit' update operation succeeded", + "schema": { + "$ref": "#/definitions/Credit" + } + }, + "201": { + "description": "Resource 'Credit' create operation succeeded", + "schema": { + "$ref": "#/definitions/Credit" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditCreate": { + "$ref": "./examples/CreditCreate.json" + }, + "EndCustomerInvestmentFundCreditCreate": { + "$ref": "./examples/EndCustomerInvestmentFundCreditCreate.json" + }, + "PromotionalCreditCreate": { + "$ref": "./examples/PromotionalCreditCreate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Credit" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Credits_Update", + "tags": [ + "Credits" + ], + "description": "Update a credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Credit patch request", + "required": true, + "schema": { + "$ref": "#/definitions/CreditPatchRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Credit" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditTagsUpdate": { + "$ref": "./examples/CreditTagsUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Credits_Delete", + "tags": [ + "Credits" + ], + "description": "Delete a credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditDelete": { + "$ref": "./examples/CreditDelete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}/cancel": { + "post": { + "operationId": "Credits_Cancel", + "tags": [ + "Credits" + ], + "description": "Cancels a credit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Credit" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditCancel": { + "$ref": "./examples/CreditCancel.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Azure.ResourceManager.ArmResponse%3CCredit%3E" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}/sources": { + "get": { + "operationId": "Sources_ListByCredit", + "tags": [ + "CreditSources" + ], + "description": "List credit sources for a credit under a resource group from primary service admin.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CreditSourcesList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditSourcesListByCredit": { + "$ref": "./examples/CreditSourcesListByCredit.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}/sources/{sourceName}": { + "get": { + "operationId": "Sources_Get", + "tags": [ + "CreditSources" + ], + "description": "Get a credit source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "sourceName", + "in": "path", + "description": "Name of the credit source", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CreditSource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditSourceGet": { + "$ref": "./examples/CreditSourceGet.json" + } + } + }, + "put": { + "operationId": "Sources_Create", + "tags": [ + "CreditSources" + ], + "description": "Create a credit source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "sourceName", + "in": "path", + "description": "Name of the credit source", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Credit source create request", + "required": true, + "schema": { + "$ref": "#/definitions/CreditSource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CreditSource' update operation succeeded", + "schema": { + "$ref": "#/definitions/CreditSource" + } + }, + "201": { + "description": "Resource 'CreditSource' create operation succeeded", + "schema": { + "$ref": "#/definitions/CreditSource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditSourceCreate": { + "$ref": "./examples/CreditSourceCreate.json" + } + } + }, + "patch": { + "operationId": "Sources_Update", + "tags": [ + "CreditSources" + ], + "description": "Update a credit source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "sourceName", + "in": "path", + "description": "Name of the credit source", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Credit source patch request", + "required": true, + "schema": { + "$ref": "#/definitions/CreditSourcePatchRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CreditSource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditSourceTagsUpdate": { + "$ref": "./examples/CreditSourceTagsUpdate.json" + } + } + }, + "delete": { + "operationId": "Sources_Delete", + "tags": [ + "CreditSources" + ], + "description": "Delete a credit source.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "creditName", + "in": "path", + "description": "Name of the credit", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "sourceName", + "in": "path", + "description": "Name of the credit source", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreditSourceDelete": { + "$ref": "./examples/CreditSourceDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts": { + "get": { + "operationId": "Discounts_ResourceGroupList", + "tags": [ + "Discounts" + ], + "description": "List discounts at resource group level", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DiscountList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountsResourceGroupList": { + "$ref": "./examples/DiscountListResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}": { + "get": { + "operationId": "Discount_Get", + "tags": [ + "Discounts" + ], + "description": "Get discount at resource group level", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "discountName", + "in": "path", + "description": "Name of the discount", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Discount" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountGet": { + "$ref": "./examples/DiscountGet.json" + } + } + }, + "put": { + "operationId": "Discounts_Create", + "tags": [ + "Discounts" + ], + "description": "Create discount.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "discountName", + "in": "path", + "description": "Name of the discount", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for creating a discount.", + "required": true, + "schema": { + "$ref": "#/definitions/Discount" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Discount' update operation succeeded", + "schema": { + "$ref": "#/definitions/Discount" + } + }, + "201": { + "description": "Resource 'Discount' create operation succeeded", + "schema": { + "$ref": "#/definitions/Discount" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountsCreateAffiliate": { + "$ref": "./examples/DiscountsCreateAffiliate.json" + }, + "DiscountsCreatePrimary": { + "$ref": "./examples/DiscountsCreatePrimary.json" + }, + "DiscountsCreatePrimaryBackfill": { + "$ref": "./examples/DiscountsCreatePrimaryBackfill.json" + }, + "DiscountsCreatePrimaryWithCustomPrice": { + "$ref": "./examples/DiscountsCreatePrimaryWithCustomPrice.json" + }, + "DiscountsCreatePrimaryWithCustomPriceMultiCurrency": { + "$ref": "./examples/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json" + }, + "DiscountsCreatePrimaryWithPriceGuarantee": { + "$ref": "./examples/DiscountsCreatePrimaryWithPriceGuarantee.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Discount" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Discount_Update", + "tags": [ + "Discounts" + ], + "description": "Update discounts", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "discountName", + "in": "path", + "description": "Name of the discount", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for updating discounts", + "required": true, + "schema": { + "$ref": "#/definitions/DiscountPatchRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Discount" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountGet": { + "$ref": "./examples/DiscountsUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Discount" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Discounts_Delete", + "tags": [ + "Discounts" + ], + "description": "Delete discount. Clears the metadata from the user's view.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "discountName", + "in": "path", + "description": "Name of the discount", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ReservationOrderAliasCreate": { + "$ref": "./examples/DiscountsDelete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}/cancel": { + "post": { + "operationId": "Discounts_Cancel", + "tags": [ + "Discounts" + ], + "description": "Cancel discount. Stops applying the benefit.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "discountName", + "in": "path", + "description": "Name of the discount", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Discount" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DiscountCancel": { + "$ref": "./examples/DiscountCancel.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Discount" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs": { + "get": { + "operationId": "Maccs_ListByResourceGroup", + "tags": [ + "Maccs" + ], + "description": "List MACCs under a resource group for primary service admin.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MaccList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MaccsWithMilestones_ListByResourceGroup": { + "$ref": "./examples/MaccsWithMilestonesListByResourceGroup.json" + }, + "Maccs_ListByResourceGroup": { + "$ref": "./examples/MaccsListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}": { + "get": { + "operationId": "Maccs_Get", + "tags": [ + "Maccs" + ], + "description": "Get a MACC.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Macc" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ContributorWithMilestonesAndShortfall_GetFromPrimary": { + "$ref": "./examples/ContributorWithMilestonesAndShortfallGet.json" + }, + "ContributorWithMilestones_GetFromPrimary": { + "$ref": "./examples/ContributorWithMilestonesGet.json" + }, + "Contributor_Get": { + "$ref": "./examples/ContributorGet.json" + }, + "MaccWithMilestonesAndShortfall_Get": { + "$ref": "./examples/MaccWithMilestonesAndShortfallGet.json" + }, + "MaccWithMilestones_Get": { + "$ref": "./examples/MaccWithMilestonesGet.json" + }, + "MaccWithShortfall_Get": { + "$ref": "./examples/MaccWithShortfallGet.json" + }, + "Macc_Get": { + "$ref": "./examples/MaccGet.json" + } + } + }, + "put": { + "operationId": "Maccs_Create", + "tags": [ + "Maccs" + ], + "description": "Create MACC.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for creating MACC.", + "required": true, + "schema": { + "$ref": "#/definitions/Macc" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Macc' update operation succeeded", + "schema": { + "$ref": "#/definitions/Macc" + } + }, + "201": { + "description": "Resource 'Macc' create operation succeeded", + "schema": { + "$ref": "#/definitions/Macc" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Contributor_Create": { + "$ref": "./examples/ContributorCreate.json" + }, + "MaccWithMilestones_Create": { + "$ref": "./examples/MaccWithMilestonesCreate.json" + }, + "Macc_Create": { + "$ref": "./examples/MaccCreate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/Macc" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Maccs_Update", + "tags": [ + "Maccs" + ], + "description": "Update MACC.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "body", + "in": "body", + "description": "Request body for updating MACC.", + "required": true, + "schema": { + "$ref": "#/definitions/MaccPatchRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Macc" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Contributor_UpdateEndDate": { + "$ref": "./examples/ContributorEndDateUpdate.json" + }, + "MaccAndMilestoneCommitment_Update": { + "$ref": "./examples/MaccAndMilestoneCommitmentUpdate.json" + }, + "MaccAndMilestoneEndDate_Update": { + "$ref": "./examples/MaccAndMilestoneEndDateUpdate.json" + }, + "MaccAndMilestoneMultiProperty_Update": { + "$ref": "./examples/MaccAndMilestoneMultiPropertyUpdate.json" + }, + "MaccCommitment_Update": { + "$ref": "./examples/MaccNoMilestonesCommitmentUpdate.json" + }, + "MaccDisplayName_Update": { + "$ref": "./examples/MaccDisplayNameUpdate.json" + }, + "MaccEndContributorRule_Update": { + "$ref": "./examples/MaccContributorRuleUpdate.json" + }, + "MaccEndDate_Update": { + "$ref": "./examples/MaccNoMilestonesEndDateUpdate.json" + }, + "MaccMilestoneSuppressAutomaticShortfall": { + "$ref": "./examples/MaccMilestoneSuppressAutomaticShortfall.json" + }, + "MaccMilestoneUnsuppressAutomaticShortfall": { + "$ref": "./examples/MaccMilestoneUnsuppressAutomaticShortfall.json" + }, + "MaccMultiProperty_Update": { + "$ref": "./examples/MaccMultiPropertyUpdate.json" + }, + "MaccSuppressAutomaticShortfall": { + "$ref": "./examples/MaccSuppressAutomaticShortfall.json" + }, + "MaccTags_Update": { + "$ref": "./examples/MaccTagsUpdate.json" + }, + "MaccUnsuppressAutomaticShortfall": { + "$ref": "./examples/MaccUnsuppressAutomaticShortfall.json" + }, + "MilestonesCreate_OnExistingMacc": { + "$ref": "./examples/MilestonesCreateOnExistingMacc.json" + }, + "MilestonesRemove_FromMacc": { + "$ref": "./examples/MilestonesRemoveFromMacc.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Maccs_Delete", + "tags": [ + "Maccs" + ], + "description": "Delete MACC.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ServiceSpecificIncentives_Delete": { + "$ref": "./examples/MaccDelete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}/cancel": { + "post": { + "operationId": "Maccs_Cancel", + "tags": [ + "Maccs" + ], + "description": "Represents an operation to cancel MACC contract. This operation does not indicate deletion of the MACC, but rather stops applying the benefit to the account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Macc" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MaccWithMilestones_Cancel": { + "$ref": "./examples/MaccWithMilestonesCancel.json" + }, + "Macc_Cancel": { + "$ref": "./examples/MaccCancel.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}/contributors": { + "get": { + "operationId": "Contributors_ListFromPrimary", + "tags": [ + "Contributors" + ], + "description": "List contributors under a MACC for primary service admin", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ContributorList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ContributorsWithMilestonesAndShortfall_ListFromPrimary": { + "$ref": "./examples/ContributorsWithMilestonesAndShortfallListFromPrimary.json" + }, + "ContributorsWithMilestones_ListFromPrimary": { + "$ref": "./examples/ContributorsWithMilestonesListFromPrimary.json" + }, + "Contributors_ListFromPrimary": { + "$ref": "./examples/ContributorsListFromPrimary.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}/contributors/{contributorName}": { + "get": { + "operationId": "Contributors_GetFromPrimary", + "tags": [ + "Contributors" + ], + "description": "Get a contributor for primary service admin", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + { + "name": "contributorName", + "in": "path", + "description": "Unique name of contributor in the format {contributorCloudSubId}_{resourceGroupName}_{nameInContributorTenant}.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Contributor" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Contributor_GetFromPrimary": { + "$ref": "./examples/ContributorGetFromPrimary.json" + }, + "Contributor_GetFromPrimary_WithMilestones": { + "$ref": "./examples/ContributorWithMilestonesGetFromPrimary.json" + }, + "Contributor_GetFromPrimary_WithMilestonesAndShortfall": { + "$ref": "./examples/ContributorWithMilestonesAndShortfallGetFromPrimary.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}/writeOff": { + "post": { + "operationId": "Maccs_WriteOff", + "tags": [ + "Maccs" + ], + "description": "Operation to waive a customer's pending MACC balance (Shortfall) from their account, ensuring they are not charged for the outstanding amount.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "maccName", + "in": "path", + "description": "Name of primary MACC.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Macc" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MaccWithMilestones_WriteOff": { + "$ref": "./examples/MaccWithMilestonesWriteOff.json" + }, + "Macc_WriteOff": { + "$ref": "./examples/MaccWriteOff.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ApplicableContributor": { + "type": "object", + "description": "Applicable Contributor.", + "properties": { + "properties": { + "$ref": "#/definitions/MaccModelProperties", + "description": "Applicable Contributor properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "ApplicableContributorList": { + "type": "object", + "description": "Applicable Contributor list", + "properties": { + "value": { + "type": "array", + "description": "The ApplicableContributor items on this page", + "items": { + "$ref": "#/definitions/ApplicableContributor" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ApplicableMacc": { + "type": "object", + "description": "Applicable MACC.", + "properties": { + "properties": { + "$ref": "#/definitions/MaccModelProperties", + "description": "Applicable MACC properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "ApplicableMaccList": { + "type": "object", + "description": "Applicable MACC list", + "properties": { + "value": { + "type": "array", + "description": "The ApplicableMacc items on this page", + "items": { + "$ref": "#/definitions/ApplicableMacc" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AppliedScopeProperties": { + "type": "object", + "description": "Properties specific to applied scope type. Not required if not applicable.", + "properties": { + "tenantId": { + "type": "string", + "description": "Tenant ID where the benefit is applied." + }, + "managementGroupId": { + "type": "string", + "description": "Fully-qualified identifier of the management group where the benefit must be applied." + }, + "subscriptionId": { + "type": "string", + "description": "Fully-qualified identifier of the subscription." + }, + "resourceGroupId": { + "type": "string", + "description": "Fully-qualified identifier of the resource group." + }, + "displayName": { + "type": "string", + "description": "Display name" + } + } + }, + "AppliedScopeType": { + "type": "string", + "description": "Type of the Applied Scope.", + "enum": [ + "Single", + "Shared", + "ManagementGroup" + ], + "x-ms-enum": { + "name": "AppliedScopeType", + "modelAsString": true, + "values": [ + { + "name": "Single", + "value": "Single" + }, + { + "name": "Shared", + "value": "Shared" + }, + { + "name": "ManagementGroup", + "value": "ManagementGroup" + } + ] + } + }, + "ApplyDiscountOn": { + "type": "string", + "description": "The customer action on which the discount is applied. Supported values are Purchase, Consume, and Renew. Validation: Required, one of supported values.", + "enum": [ + "Purchase", + "Consume", + "Renew" + ], + "x-ms-enum": { + "name": "ApplyDiscountOn", + "modelAsString": true, + "values": [ + { + "name": "Purchase", + "value": "Purchase" + }, + { + "name": "Consume", + "value": "Consume" + }, + { + "name": "Renew", + "value": "Renew" + } + ] + } + }, + "AutomaticShortfallSuppressReason": { + "type": "object", + "description": "Optional field to record suppression reason for automatic shortfall.", + "properties": { + "code": { + "type": "string", + "description": "Code for the suppression reason." + }, + "message": { + "type": "string", + "description": "Message for suppression reason." + } + } + }, + "Award": { + "type": "object", + "description": "Award details for milestone completion", + "properties": { + "credit": { + "$ref": "#/definitions/Commitment", + "description": "Credit amount to be awarded" + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Start date when the credit becomes effective" + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End date when the credit expires" + }, + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Resource ID for the awarded credit.", + "readOnly": true + }, + "systemId": { + "type": "string", + "description": "This is the globally unique identifier of the credit which will not change for its lifetime.", + "readOnly": true + }, + "balanceVersion": { + "type": "number", + "format": "float", + "description": "Points to BalanceVersion document that indicates the remaining commitment balance when the credit was created.", + "readOnly": true + } + } + }, + "Azure.Core.armResourceType": { + "type": "string", + "description": "Represents an Azure Resource Type." + }, + "Azure.ResourceManager.ArmResponse": { + "type": "object", + "description": "Azure operation completed successfully.", + "properties": { + "body": { + "$ref": "#/definitions/Credit", + "description": "The body type of the operation request or response." + } + }, + "required": [ + "body" + ] + }, + "BenefitType": { + "type": "string", + "description": "Represents benefit model type for validation.", + "enum": [ + "SavingsPlan", + "MACC", + "ConditionalCredits", + "Credits" + ], + "x-ms-enum": { + "name": "BenefitType", + "modelAsString": true, + "values": [ + { + "name": "SavingsPlan", + "value": "SavingsPlan" + }, + { + "name": "MACC", + "value": "MACC" + }, + { + "name": "ConditionalCredits", + "value": "ConditionalCredits" + }, + { + "name": "Credits", + "value": "Credits" + } + ] + } + }, + "BenefitValidateModel": { + "type": "object", + "description": "Abstract benefit model to validate.", + "properties": { + "benefitType": { + "$ref": "#/definitions/BenefitType", + "description": "Type of benefit to validate. This is used to determine the model type for validation." + } + }, + "discriminator": "benefitType", + "required": [ + "benefitType" + ] + }, + "BenefitValidateRequest": { + "type": "object", + "description": "Request to validate any benefit.", + "properties": { + "benefits": { + "type": "array", + "description": "Defines benefits for validation.", + "items": { + "$ref": "#/definitions/BenefitValidateModel" + }, + "x-ms-identifiers": [] + } + } + }, + "BenefitValidateResponse": { + "type": "object", + "description": "Benefit validate response.", + "properties": { + "benefits": { + "type": "array", + "description": "Defines benefit validation response for benefits.", + "items": { + "$ref": "#/definitions/BenefitValidateResponseProperty" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page." + } + } + }, + "BenefitValidateResponseProperty": { + "type": "object", + "description": "Benefit validate response property", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the provided input was valid" + }, + "reasonCode": { + "type": "string", + "description": "Failure reason code if the provided input was invalid" + }, + "reason": { + "type": "string", + "description": "Failure reason if the provided input was invalid" + }, + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Resource identifier of the benefit that was validated.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.BillingBenefits/*" + } + ] + } + } + } + }, + "BillingPlan": { + "type": "string", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.", + "enum": [ + "P1M" + ], + "x-ms-enum": { + "name": "BillingPlan", + "modelAsString": true, + "values": [ + { + "name": "P1M", + "value": "P1M" + } + ] + } + }, + "BillingPlanInformation": { + "type": "object", + "description": "Information describing the type of billing plan for this savings plan.", + "properties": { + "pricingCurrencyTotal": { + "$ref": "#/definitions/Price", + "description": "Amount of money to be paid for the Order. Tax is not included." + }, + "startDate": { + "type": "string", + "format": "date-time-rfc7231", + "description": "Date when the billing plan has started." + }, + "nextPaymentDueDate": { + "type": "string", + "format": "date-time-rfc7231", + "description": "For recurring billing plans, indicates the date when next payment will be processed. Null when total is paid off." + }, + "transactions": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentDetail" + }, + "x-ms-identifiers": [] + } + } + }, + "CatalogClaimsItem": { + "type": "object", + "description": "Catalog claim for a discount.", + "properties": { + "catalogClaimsItemType": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "Commitment": { + "type": "object", + "description": "Commitment towards the benefit.", + "properties": { + "grain": { + "$ref": "#/definitions/CommitmentGrain", + "description": "Commitment grain." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Price" + } + ] + }, + "CommitmentGrain": { + "type": "string", + "description": "Commitment grain.", + "enum": [ + "Hourly", + "FullTerm", + "Unknown" + ], + "x-ms-enum": { + "name": "CommitmentGrain", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly" + }, + { + "name": "FullTerm", + "value": "FullTerm" + }, + { + "name": "Unknown", + "value": "Unknown" + } + ] + } + }, + "ConditionalCredit": { + "type": "object", + "description": "Resource definition for Conditional Credits.", + "properties": { + "properties": { + "$ref": "#/definitions/ConditionalCreditProperties", + "description": "Conditional credit properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "ConditionalCreditEntityType": { + "type": "string", + "description": "Type of conditional credit entity", + "enum": [ + "Primary", + "Contributor" + ], + "x-ms-enum": { + "name": "ConditionalCreditEntityType", + "modelAsString": true, + "values": [ + { + "name": "Primary", + "value": "Primary" + }, + { + "name": "Contributor", + "value": "Contributor" + } + ] + } + }, + "ConditionalCreditList": { + "type": "object", + "description": "List of conditional credits", + "properties": { + "value": { + "type": "array", + "description": "The ConditionalCredit items on this page", + "items": { + "$ref": "#/definitions/ConditionalCredit" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ConditionalCreditMilestoneBase": { + "type": "object", + "description": "Base milestone definition for conditional credits", + "properties": { + "milestoneId": { + "type": "string", + "description": "Unique identifier for the milestone" + }, + "name": { + "type": "string", + "description": "Display name for the milestone" + }, + "status": { + "$ref": "#/definitions/ConditionalCreditMilestoneStatus", + "description": "Current status of the conditional credit milestone", + "readOnly": true + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End date for this milestone" + }, + "spendTarget": { + "$ref": "#/definitions/Price", + "description": "Spend target for this milestone" + }, + "award": { + "$ref": "#/definitions/Award", + "description": "Award details for this milestone (only present for primary conditional credits)" + } + } + }, + "ConditionalCreditMilestoneStatus": { + "type": "string", + "description": "Current status of the conditional credit milestone", + "enum": [ + "Scheduled", + "Active", + "Completed", + "Missed", + "Canceled", + "PendingSettlement" + ], + "x-ms-enum": { + "name": "ConditionalCreditMilestoneStatus", + "modelAsString": true, + "values": [ + { + "name": "Scheduled", + "value": "Scheduled" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Completed", + "value": "Completed" + }, + { + "name": "Missed", + "value": "Missed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "PendingSettlement", + "value": "PendingSettlement" + } + ] + } + }, + "ConditionalCreditPatchRequest": { + "type": "object", + "description": "Conditional credit patch request", + "properties": { + "properties": { + "$ref": "#/definitions/ConditionalCreditPatchRequestProperties", + "description": "Conditional credit patch request properties" + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ConditionalCreditPatchRequestProperties": { + "type": "object", + "description": "Conditional credit patch request properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name for the conditional credit" + }, + "milestones": { + "type": "array", + "description": "Updated milestones list (only applicable for primary conditional credits)", + "items": { + "$ref": "#/definitions/ConditionalCreditMilestoneBase" + } + } + } + }, + "ConditionalCreditProperties": { + "type": "object", + "description": "Properties belonging to conditional credits.", + "properties": { + "entityType": { + "$ref": "#/definitions/ConditionalCreditEntityType", + "description": "Type of conditional credit entity" + }, + "displayName": { + "type": "string", + "description": "Display name for the conditional credit" + }, + "billingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "The billing account resource ID", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "provisioningState": { + "$ref": "#/definitions/ConditionalCreditsProvisioningState", + "description": "The provisioning state of the resource", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/ConditionalCreditStatus", + "description": "The status of the conditional credit", + "readOnly": true + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Start date of the conditional credit" + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End date of the conditional credit (derived from last milestone)", + "readOnly": true + }, + "productCode": { + "type": "string", + "description": "Product code for the conditional credit" + }, + "benefitResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the benefit under applicable benefit list.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.BillingBenefits/*" + } + ] + } + } + }, + "discriminator": "entityType", + "required": [ + "entityType" + ] + }, + "ConditionalCreditStatus": { + "type": "string", + "description": "The status of the conditional credit", + "enum": [ + "Pending", + "Active", + "Canceled", + "Completed", + "PendingSettlement" + ], + "x-ms-enum": { + "name": "ConditionalCreditStatus", + "modelAsString": true, + "values": [ + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Completed", + "value": "Completed" + }, + { + "name": "PendingSettlement", + "value": "PendingSettlement" + } + ] + } + }, + "ConditionalCreditsProvisioningState": { + "type": "string", + "description": "The provisioning state of the resource", + "enum": [ + "Unknown", + "Succeeded", + "Failed", + "Canceled", + "Pending" + ], + "x-ms-enum": { + "name": "ConditionalCreditsProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Pending", + "value": "Pending" + } + ] + } + }, + "ConditionalCreditsValidateModel": { + "type": "object", + "description": "Conditional Credits validate model", + "properties": { + "properties": { + "$ref": "#/definitions/ConditionalCreditProperties", + "description": "Conditional Credits validate properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitValidateModel" + } + ], + "x-ms-discriminator-value": "ConditionalCredits" + }, + "ConditionsItem": { + "type": "object", + "description": "Condition for a discount.", + "properties": { + "conditionName": { + "type": "string" + }, + "value": { + "type": "array", + "description": "These items are open-ended strings.", + "items": { + "type": "string" + } + }, + "type": { + "type": "string" + } + } + }, + "Contributor": { + "type": "object", + "description": "MACC contributor", + "properties": { + "properties": { + "$ref": "#/definitions/MaccModelProperties", + "description": "MACC contributor properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "ContributorConditionalCreditProperties": { + "type": "object", + "description": "Properties for contributor conditional credit.", + "properties": { + "primaryResourceId": { + "type": "string", + "format": "arm-id", + "description": "Resource ID of the primary conditional credit (required for contributors)", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.BillingBenefits/conditionalCredits" + } + ] + } + }, + "systemId": { + "type": "string", + "description": "System identifier shared between primary and contributor conditional credits representing the same conditional credit program" + }, + "milestones": { + "type": "array", + "description": "List of milestones copied from primary conditional credit (excludes award details)", + "items": { + "$ref": "#/definitions/ConditionalCreditMilestoneBase" + }, + "readOnly": true + }, + "primaryBillingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified billing account resource identifier of the primary CACO. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + } + }, + "required": [ + "primaryResourceId", + "systemId" + ], + "allOf": [ + { + "$ref": "#/definitions/ConditionalCreditProperties" + } + ], + "x-ms-discriminator-value": "Contributor" + }, + "ContributorList": { + "type": "object", + "description": "Contributor list", + "properties": { + "value": { + "type": "array", + "description": "The Contributor items on this page", + "items": { + "$ref": "#/definitions/Contributor" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "Credit": { + "type": "object", + "description": "Credit resource definition", + "properties": { + "properties": { + "$ref": "#/definitions/CreditProperties", + "description": "Credit properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "CreditBreakdownItem": { + "type": "object", + "description": "Credit breakdown item representing a milestone, line-item, or no-charge service", + "properties": { + "allocation": { + "$ref": "#/definitions/Commitment", + "description": "Allocation details including currency and amount for this breakdown item" + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Start DateTime." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End DateTime in UTC." + }, + "dimensions": { + "type": "array", + "description": "Key-value pairs for additional parameters and metadata", + "items": { + "$ref": "#/definitions/CreditDimension" + }, + "x-ms-identifiers": [ + "key" + ] + } + } + }, + "CreditDimension": { + "type": "object", + "description": "Key-value pair for additional credit parameters and metadata", + "properties": { + "key": { + "type": "string", + "description": "The dimension key (e.g., productFamily, description, creditType)" + }, + "value": { + "type": "string", + "description": "The dimension value" + } + } + }, + "CreditExpirationPolicy": { + "type": "string", + "description": "Expiration policy of the Credit", + "enum": [ + "None", + "SuspendBillingProfile" + ], + "x-ms-enum": { + "name": "CreditExpirationPolicy", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "No policy applied to the expiration of this credit" + }, + { + "name": "SuspendBillingProfile", + "value": "SuspendBillingProfile", + "description": "Billing profile is suspended when the credit expires" + } + ] + } + }, + "CreditPatchProperties": { + "type": "object", + "description": "Credit patch properties", + "properties": { + "credit": { + "$ref": "#/definitions/Commitment", + "description": "The entire investment amount for the credit contract, including currency and amount. Only amount can be modified." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End DateTime in UTC." + }, + "breakdown": { + "type": "array", + "description": "Credit line-items/milestones/no-charge services breakdown. Entire breakdown will be replaced in a PATCH operation.", + "items": { + "$ref": "#/definitions/CreditBreakdownItem" + }, + "x-ms-identifiers": [] + } + } + }, + "CreditPatchRequest": { + "type": "object", + "description": "Credit patch request", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/CreditPatchProperties", + "description": "Credit patch properties", + "x-ms-client-flatten": true + } + } + }, + "CreditPolicies": { + "type": "object", + "description": "Credit breakdown item representing a milestone, line-item, or no-charge service", + "properties": { + "redemption": { + "$ref": "#/definitions/CreditRedemptionPolicy", + "description": "Redemption policy of the Credit" + }, + "expiration": { + "$ref": "#/definitions/CreditExpirationPolicy", + "description": "Expiration policy of the Credit" + } + } + }, + "CreditProperties": { + "type": "object", + "description": "Properties of a credit", + "properties": { + "status": { + "$ref": "#/definitions/CreditStatus", + "description": "Status of the credit" + }, + "productCode": { + "type": "string", + "description": "Product UPN for the credit type" + }, + "reason": { + "$ref": "#/definitions/CreditReason", + "description": "The reason for the credit. Not required if not applicable." + }, + "credit": { + "$ref": "#/definitions/Commitment", + "description": "The entire investment amount for the credit contract, including currency and amount" + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Start DateTime." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End DateTime in UTC." + }, + "policies": { + "$ref": "#/definitions/CreditPolicies", + "description": "Credit breakdown item representing a milestone, line-item, or no-charge service" + }, + "billingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing account where the benefit is applied. Present only for Enterprise Agreement customers.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "billingProfileResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing profile where the benefit is applied. Present only for Field-led or Customer-led customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "breakdown": { + "type": "array", + "description": "Credit line-items/milestones/no-charge services breakdown", + "items": { + "$ref": "#/definitions/CreditBreakdownItem" + }, + "x-ms-identifiers": [] + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state", + "readOnly": true + }, + "systemId": { + "type": "string", + "description": "System identifier" + }, + "customerId": { + "type": "string", + "description": "Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers. Format is /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "readOnly": true + }, + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified resource identifier of the resource. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/{benefitType}/{benefitName}." + } + } + }, + "CreditReason": { + "type": "object", + "description": "The reason for the credit. Not required if not applicable.", + "properties": { + "code": { + "type": "number", + "format": "float", + "description": "The reason code for credit.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "The free string description of the credit.", + "readOnly": true + } + } + }, + "CreditRedemptionPolicy": { + "type": "string", + "description": "Redemption policy of the Credit", + "enum": [ + "NotApplicable", + "AutoRedeem", + "ManualRedeem" + ], + "x-ms-enum": { + "name": "CreditRedemptionPolicy", + "modelAsString": true, + "values": [ + { + "name": "NotApplicable", + "value": "NotApplicable", + "description": "Redemption policy is not applicable for this credit" + }, + { + "name": "AutoRedeem", + "value": "AutoRedeem", + "description": "Credit is automatically redeemed" + }, + { + "name": "ManualRedeem", + "value": "ManualRedeem", + "description": "Credit is manually redeemed" + } + ] + } + }, + "CreditSource": { + "type": "object", + "description": "Credit source resource definition", + "properties": { + "properties": { + "$ref": "#/definitions/CreditSourceProperties", + "description": "Credit source properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "CreditSourcePatchRequest": { + "type": "object", + "description": "Credit patch request", + "properties": { + "tags": { + "type": "object", + "description": "Resource Tags", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + } + }, + "CreditSourceProperties": { + "type": "object", + "description": "Properties of a credit source", + "properties": { + "status": { + "$ref": "#/definitions/CreditStatus", + "description": "Status of the credit" + }, + "sourceResourceId": { + "type": "string", + "format": "arm-id", + "description": "The uri of the resource impacted which lead to the grant of the credit.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.BillingBenefits/credits" + } + ] + } + }, + "impactedBillingPeriod": { + "type": "string", + "description": "The billing period of the impact for the resource. Format YYYYMM" + }, + "credit": { + "$ref": "#/definitions/Commitment", + "description": "Commitment towards the benefit." + } + } + }, + "CreditSourcesList": { + "type": "object", + "description": "List of credit sources", + "properties": { + "value": { + "type": "array", + "description": "The CreditSource items on this page", + "items": { + "$ref": "#/definitions/CreditSource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CreditStatus": { + "type": "string", + "description": "Status of the credit", + "enum": [ + "Unknown", + "Pending", + "Active", + "Succeeded", + "Canceled", + "Failed", + "Expired", + "Exhausted", + "NotStarted" + ], + "x-ms-enum": { + "name": "CreditStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Credit status is unknown" + }, + { + "name": "Pending", + "value": "Pending", + "description": "Credit is pending activation" + }, + { + "name": "Active", + "value": "Active", + "description": "Credit is active and available for use" + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Credit operation succeeded" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Credit has been cancelled" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Credit operation failed" + }, + { + "name": "Expired", + "value": "Expired", + "description": "Credit has expired" + }, + { + "name": "Exhausted", + "value": "Exhausted", + "description": "Credit has been fully consumed" + }, + { + "name": "NotStarted", + "value": "NotStarted", + "description": "Credit application has not started yet" + } + ] + } + }, + "CreditsList": { + "type": "object", + "description": "List of credits", + "properties": { + "value": { + "type": "array", + "description": "The Credit items on this page", + "items": { + "$ref": "#/definitions/Credit" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "CreditsValidateModel": { + "type": "object", + "description": "Credits validate model", + "properties": { + "properties": { + "$ref": "#/definitions/Credit", + "description": "Credits validate properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitValidateModel" + } + ], + "x-ms-discriminator-value": "Credits" + }, + "CustomPriceProperties": { + "type": "object", + "description": "Custom price properties for a given discount.", + "properties": { + "ruleType": { + "$ref": "#/definitions/DiscountRuleType", + "description": "The type of the priceable node pricing rule. Validation: Required. Supported values are fixedPriceLock, fixedListPrice, and priceCeiling." + }, + "catalogId": { + "type": "string", + "description": "The catalog instance where the priceable node lives. Validation: Required. No defined format, will vary per team." + }, + "catalogClaims": { + "type": "array", + "description": "The set of BigCat claims. Validation: Required. Must contain AgreementType, NationalCloud, and PricingAudience claims. Additionally requires AccessPass claim when creating custom price with action == consume on the pricing instructions.", + "items": { + "$ref": "#/definitions/CatalogClaimsItem" + } + }, + "termUnits": { + "type": "string", + "description": "The term units for the priceable node. Validation: Optional, Maximum length 128 characters. Must be present if and only if the availability derived by market, product, sku, and claims has terms." + }, + "billingPeriod": { + "type": "string", + "description": "The billing period of the priceable node. Validation: Optional, Maximum length 128 characters. Only allowed if the availability derived by market, product, sku, and claims has terms and at least one of those terms has a billing period. When specified, termUnits must be specified." + }, + "meterType": { + "type": "string", + "description": "Must be present if the market, product, sku, and claims, and optional term information resolves to multiple availabilities that only differ by meter type. Validation: Maximum length 128 characters." + }, + "marketSetPrices": { + "type": "array", + "description": "The set of market set prices of the priceable node. Validation: Required. Must contain at least one element.", + "items": { + "$ref": "#/definitions/MarketSetPricesItems" + } + } + }, + "required": [ + "ruleType", + "catalogId", + "catalogClaims", + "marketSetPrices" + ] + }, + "Discount": { + "type": "object", + "description": "Resource definition for Discounts.", + "properties": { + "properties": { + "$ref": "#/definitions/DiscountProperties", + "description": "Discount properties" + }, + "managedBy": { + "type": "string", + "description": "The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "kind": { + "type": "string", + "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + "pattern": "^[-\\w\\._,\\(\\)]+$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "etag": { + "type": "string", + "description": "The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + }, + "identity": { + "$ref": "#/definitions/ManagedServiceIdentity", + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The resource model definition representing SKU" + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "Plan for the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "DiscountAppliedScopeType": { + "type": "string", + "description": "List of applied scopes supported for discounts.", + "enum": [ + "BillingAccount", + "BillingProfile", + "Customer" + ], + "x-ms-enum": { + "name": "DiscountAppliedScopeType", + "modelAsString": true, + "values": [ + { + "name": "BillingAccount", + "value": "BillingAccount" + }, + { + "name": "BillingProfile", + "value": "BillingProfile" + }, + { + "name": "Customer", + "value": "Customer" + } + ] + } + }, + "DiscountCombinationRule": { + "type": "string", + "description": "The discount combination rule when there are multiple applicable custom prices. Validation: Required. Supported values are Stackable and BestOf.", + "enum": [ + "BestOf", + "Stackable" + ], + "x-ms-enum": { + "name": "DiscountCombinationRule", + "modelAsString": true, + "values": [ + { + "name": "BestOf", + "value": "BestOf" + }, + { + "name": "Stackable", + "value": "Stackable" + } + ] + } + }, + "DiscountEntityType": { + "type": "string", + "description": "This defines whether the entity being created is primary or affiliate. Supported values: primary, affiliate. Validation: Required, must match one of the 2 values.", + "enum": [ + "Primary", + "Affiliate" + ], + "x-ms-enum": { + "name": "DiscountEntityType", + "modelAsString": true, + "values": [ + { + "name": "Primary", + "value": "Primary" + }, + { + "name": "Affiliate", + "value": "Affiliate" + } + ] + } + }, + "DiscountList": { + "type": "object", + "description": "Discount list", + "properties": { + "value": { + "type": "array", + "description": "The Discount items on this page", + "items": { + "$ref": "#/definitions/Discount" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "DiscountPatchRequest": { + "type": "object", + "description": "Discounts patch request", + "properties": { + "properties": { + "$ref": "#/definitions/DiscountPatchRequestProperties", + "description": "Discounts patch request properties", + "x-ms-client-flatten": true + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DiscountPatchRequestProperties": { + "type": "object", + "description": "Discounts patch request properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + } + } + }, + "DiscountProperties": { + "type": "object", + "description": "Properties belonging to discounts.", + "properties": { + "entityType": { + "$ref": "#/definitions/DiscountEntityType", + "description": "This defines whether the entity being created is primary or affiliate. Supported values: primary, affiliate. Validation: Required, must match one of the 2 values." + }, + "productCode": { + "type": "string", + "description": "This is the catalog UPN for the product." + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Start date of the discount. Value is the date the discount started or will start in the future." + }, + "systemId": { + "type": "string", + "description": "This is the globally unique identifier of the Discount which will not change for the lifetime of the Discount." + }, + "provisioningState": { + "$ref": "#/definitions/DiscountProvisioningState", + "description": "The state of the resource. Supported values are Pending, Failed, Succeeded, Canceled.", + "readOnly": true + }, + "billingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Billing account resource id where the discount metadata is present.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts", + "scopes": [ + "Tenant" + ] + } + ] + } + }, + "billingProfileResourceId": { + "type": "string", + "format": "arm-id", + "description": "Billing profile resource id where the discount is scoped to.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts", + "scopes": [ + "Tenant" + ] + } + ] + } + }, + "customerResourceId": { + "type": "string", + "format": "arm-id", + "description": "Customer resource id where the discount is scoped to.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts/customers", + "scopes": [ + "Tenant" + ] + } + ] + } + }, + "displayName": { + "type": "string", + "description": "This defines a user friendly display name for the discount." + }, + "status": { + "$ref": "#/definitions/DiscountStatus", + "description": "Represents the current status of the discount.", + "readOnly": true + }, + "benefitResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the benefit under applicable benefit list.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.BillingBenefits/discounts", + "scopes": [ + "ResourceGroup" + ] + } + ] + } + }, + "appliedScopeType": { + "$ref": "#/definitions/DiscountAppliedScopeType", + "description": "List of applied scopes supported for discounts." + } + }, + "discriminator": "entityType", + "required": [ + "entityType", + "productCode", + "startAt" + ] + }, + "DiscountProvisioningState": { + "type": "string", + "description": "Provisioning states of Discount.", + "enum": [ + "Unknown", + "Pending", + "Succeeded", + "Canceled", + "Failed" + ], + "x-ms-enum": { + "name": "DiscountProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Failed", + "value": "Failed" + } + ] + } + }, + "DiscountRuleType": { + "type": "string", + "description": "The type of the priceable node pricing rule. Validation: Required. Supported values are fixedPriceLock, fixedListPrice, and priceCeiling.", + "enum": [ + "FixedPriceLock", + "FixedListPrice", + "PriceCeiling" + ], + "x-ms-enum": { + "name": "DiscountRuleType", + "modelAsString": true, + "values": [ + { + "name": "FixedPriceLock", + "value": "FixedPriceLock" + }, + { + "name": "FixedListPrice", + "value": "FixedListPrice" + }, + { + "name": "PriceCeiling", + "value": "PriceCeiling" + } + ] + } + }, + "DiscountStatus": { + "type": "string", + "description": "Represents the current status of the discount.", + "enum": [ + "Active", + "Pending", + "Failed", + "Canceled", + "Expired" + ], + "x-ms-enum": { + "name": "DiscountStatus", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "Active" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Expired", + "value": "Expired" + } + ] + } + }, + "DiscountType": { + "type": "string", + "description": "Defines the type of discount. Supported values are ProductFamily, Product, Sku, CustomPrice, and CustomPriceMultiCurrency.", + "enum": [ + "ProductFamily", + "Product", + "Sku", + "CustomPrice", + "CustomPriceMultiCurrency" + ], + "x-ms-enum": { + "name": "DiscountType", + "modelAsString": true, + "values": [ + { + "name": "ProductFamily", + "value": "ProductFamily" + }, + { + "name": "Product", + "value": "Product" + }, + { + "name": "Sku", + "value": "Sku" + }, + { + "name": "CustomPrice", + "value": "CustomPrice" + }, + { + "name": "CustomPriceMultiCurrency", + "value": "CustomPriceMultiCurrency" + } + ] + } + }, + "DiscountTypeCustomPrice": { + "type": "object", + "description": "Discount type properties including product family name, product id, sku, and custom price properties. Allows a single entry in marketSetPrices.", + "properties": { + "productFamilyName": { + "type": "string", + "description": "Product family for which the discount is given. Validation: Optional" + }, + "productId": { + "type": "string", + "description": "Product ID for which the discount is given. Validation: Optional. No specific format, example: DZH318Z09V6F" + }, + "skuId": { + "type": "string", + "description": "ResourceSku for the given discount. Validation: Optional." + }, + "customPriceProperties": { + "$ref": "#/definitions/CustomPriceProperties", + "description": "Custom price properties for a given discount." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DiscountTypeProperties" + } + ], + "x-ms-discriminator-value": "CustomPrice" + }, + "DiscountTypeCustomPriceMultiCurrency": { + "type": "object", + "description": "Discount type properties including product family name, product id, sku, and custom price properties. Allows multiple entries in marketSetPrices.", + "allOf": [ + { + "$ref": "#/definitions/DiscountTypeCustomPrice" + } + ], + "x-ms-discriminator-value": "CustomPriceMultiCurrency" + }, + "DiscountTypeProduct": { + "type": "object", + "description": "Discount type properties including product family name and product id.", + "properties": { + "productFamilyName": { + "type": "string", + "description": "Product family for which the discount is given. Validation: Optional" + }, + "productId": { + "type": "string", + "description": "Product ID for which the discount is given. Validation: Optional. No specific format, example: DZH318Z09V6F" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DiscountTypeProperties" + } + ], + "x-ms-discriminator-value": "Product" + }, + "DiscountTypeProductFamily": { + "type": "object", + "description": "Discount type properties including product family name", + "properties": { + "productFamilyName": { + "type": "string", + "description": "Product family for which the discount is given. Validation: Optional" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DiscountTypeProperties" + } + ], + "x-ms-discriminator-value": "ProductFamily" + }, + "DiscountTypeProductSku": { + "type": "object", + "description": "Discount type properties including product family name, product id, and sku id.", + "properties": { + "productFamilyName": { + "type": "string", + "description": "Product family for which the discount is given. Validation: Optional" + }, + "productId": { + "type": "string", + "description": "Product ID for which the discount is given. Validation: Optional. No specific format, example: DZH318Z09V6F" + }, + "skuId": { + "type": "string", + "description": "ResourceSku for the given discount. Validation: Optional." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DiscountTypeProperties" + } + ], + "x-ms-discriminator-value": "Sku" + }, + "DiscountTypeProperties": { + "type": "object", + "description": "This defines the conditions for a given discount type.", + "properties": { + "discountType": { + "$ref": "#/definitions/DiscountType", + "description": "Defines the type of discount. Supported values are ProductFamily, Product, Sku, CustomPrice, and CustomPriceMultiCurrency." + }, + "applyDiscountOn": { + "$ref": "#/definitions/ApplyDiscountOn", + "description": "The customer action on which the discount is applied. Supported values are Purchase, Consume, and Renew. Validation: Required, one of supported values." + }, + "discountPercentage": { + "type": "number", + "format": "double", + "description": "Discount percentage provided for the customer. Validation: Required unless this is a price rule.", + "minimum": 0, + "maximum": 100 + }, + "discountCombinationRule": { + "$ref": "#/definitions/DiscountCombinationRule", + "description": "The discount combination rule when there are multiple applicable custom prices. Validation: Required. Supported values are Stackable and BestOf." + }, + "priceGuaranteeProperties": { + "$ref": "#/definitions/PriceGuaranteeProperties", + "description": "Set only in price guarantee scenario." + }, + "conditions": { + "type": "array", + "description": "Array of conditions for the discount. Validation: Optional. Maximum length is 1000.", + "items": { + "$ref": "#/definitions/ConditionsItem" + } + } + }, + "discriminator": "discountType", + "required": [ + "discountType", + "applyDiscountOn" + ] + }, + "EnablementMode": { + "type": "string", + "description": "Represents the enablement status of a feature or settings.", + "enum": [ + "Unknown", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementMode", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "EntityTypeAffiliateDiscount": { + "type": "object", + "description": "Entity type for affiliate discounts", + "properties": { + "primaryResourceId": { + "type": "string", + "format": "arm-id", + "description": "This will be present in the response if the primary has a resource ID", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.BillingBenefits/discounts", + "scopes": [ + "ResourceGroup" + ] + } + ] + } + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End date of the discount. No duration will be supported. Allowed value is any date greater than or equal to startDate.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/DiscountProperties" + } + ], + "x-ms-discriminator-value": "Affiliate" + }, + "EntityTypePrimaryDiscount": { + "type": "object", + "description": "Entity type for primary discounts", + "properties": { + "discountTypeProperties": { + "$ref": "#/definitions/DiscountTypeProperties", + "description": "This defines the conditions for a given discount type." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End date of the discount. No duration will be supported. Allowed value is any date greater than or equal to startDate." + } + }, + "required": [ + "endAt" + ], + "allOf": [ + { + "$ref": "#/definitions/DiscountProperties" + } + ], + "x-ms-discriminator-value": "Primary" + }, + "ExtendedStatusInfo": { + "type": "object", + "properties": { + "statusCode": { + "type": "string", + "description": "Status code providing additional information." + }, + "message": { + "type": "string", + "description": "The message giving detailed information about the status code." + } + } + }, + "InstanceFlexibility": { + "type": "string", + "description": "Turning this on will apply the reservation discount to other VMs in the same VM size group.", + "enum": [ + "On", + "Off" + ], + "x-ms-enum": { + "name": "InstanceFlexibility", + "modelAsString": true, + "values": [ + { + "name": "On", + "value": "On" + }, + { + "name": "Off", + "value": "Off" + } + ] + } + }, + "Macc": { + "type": "object", + "description": "Microsoft Azure Consumption Commitment.", + "properties": { + "properties": { + "$ref": "#/definitions/MaccModelProperties", + "description": "MACC properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "MaccEntityType": { + "type": "string", + "description": "Represents type of the object being operated on. Possible values are primary or contributor.", + "enum": [ + "Primary", + "Contributor" + ], + "x-ms-enum": { + "name": "MaccEntityType", + "modelAsString": true, + "values": [ + { + "name": "Primary", + "value": "Primary" + }, + { + "name": "Contributor", + "value": "Contributor" + } + ] + } + }, + "MaccList": { + "type": "object", + "description": "MACC list", + "properties": { + "value": { + "type": "array", + "description": "The Macc items on this page", + "items": { + "$ref": "#/definitions/Macc" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MaccMilestone": { + "type": "object", + "description": "MACC milestone represents interim targets within the period of MACC.", + "properties": { + "milestoneId": { + "type": "string", + "description": "Globally unique identifier for the milestone. Format: {guid}", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "commitment": { + "$ref": "#/definitions/Price", + "description": "Commitment associated with this milestone." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End date time for the milestone. Timestamp must be in the ISO date format YYYY-MM-DDT23:59:59Z." + }, + "automaticShortfall": { + "$ref": "#/definitions/EnablementMode", + "description": "Setting this to 'Enable' enables automatic shortfall invoicing when milestone commitment is not met." + }, + "automaticShortfallSuppressReason": { + "$ref": "#/definitions/AutomaticShortfallSuppressReason", + "description": "Optional field to record suppression reason for automatic shortfall." + }, + "status": { + "$ref": "#/definitions/MaccMilestoneStatus", + "description": "Represents the current status of the Milestone." + }, + "shortfall": { + "$ref": "#/definitions/Shortfall", + "description": "Details of the shortfall associated with this milestone." + } + } + }, + "MaccMilestoneStatus": { + "type": "string", + "description": "Represents the current status of the Milestone.", + "enum": [ + "Unknown", + "Scheduled", + "Active", + "Pending", + "Failed", + "Completed", + "Canceled", + "Removed", + "PendingSettlement", + "ShortfallCharged", + "ShortfallWaived" + ], + "x-ms-enum": { + "name": "MaccMilestoneStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Scheduled", + "value": "Scheduled" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Completed", + "value": "Completed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Removed", + "value": "Removed" + }, + { + "name": "PendingSettlement", + "value": "PendingSettlement" + }, + { + "name": "ShortfallCharged", + "value": "ShortfallCharged" + }, + { + "name": "ShortfallWaived", + "value": "ShortfallWaived" + } + ] + } + }, + "MaccModelProperties": { + "type": "object", + "description": "MACC properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/MaccProvisioningState", + "description": "Provisioning state of MACC as assigned by RPaaS. This indicates the last operation's status. For all practical purposes, this can be ignored. For current status of MACC resource, refer to MaccStatus.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/MaccStatus", + "description": "Represents the current status of the MACC." + }, + "entityType": { + "$ref": "#/definitions/MaccEntityType", + "description": "Represents type of the object being operated on. Possible values are primary or contributor.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "displayName": { + "type": "string", + "description": "Display name" + }, + "productCode": { + "type": "string", + "description": "Represents catalog UPN.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "billingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing account where the MACC is applied. Present only for Enterprise Agreement customers. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "commitment": { + "$ref": "#/definitions/Commitment", + "description": "Commitment towards the benefit." + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Must be start of month. Timestamp must be in the ISO date format YYYY-MM-DDT00:00:00Z." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "Must be end of month. Timestamp must be in the ISO date format YYYY-MM-DDT23:59:59Z." + }, + "systemId": { + "type": "string", + "description": "This is the globally unique identifier of the MACC which will not change for the lifetime of the MACC.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "automaticShortfall": { + "$ref": "#/definitions/EnablementMode", + "description": "Setting this to 'Enable' enables automatic shortfall charging when commitment is not met." + }, + "automaticShortfallSuppressReason": { + "$ref": "#/definitions/AutomaticShortfallSuppressReason", + "description": "Optional field to record suppression reason for automatic shortfall." + }, + "shortfall": { + "$ref": "#/definitions/Shortfall", + "description": "MACC shortfall" + }, + "milestones": { + "type": "array", + "description": "List of milestones associated with this MACC.", + "items": { + "$ref": "#/definitions/MaccMilestone" + }, + "x-ms-identifiers": [ + "milestoneId" + ] + }, + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "This is the resource identifier of either the primary MACC or the contributor. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}." + }, + "allowContributors": { + "type": "boolean", + "description": "Setting this to true means multi-entity." + }, + "primaryResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified resource identifier of the primary MACC. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}." + }, + "primaryBillingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified billing account resource identifier of the primary MACC. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + } + }, + "required": [ + "entityType" + ] + }, + "MaccPatchRequest": { + "type": "object", + "description": "Macc patch request", + "properties": { + "properties": { + "$ref": "#/definitions/MaccPatchRequestProperties", + "description": "Macc patch request properties", + "x-ms-client-flatten": true + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MaccPatchRequestProperties": { + "type": "object", + "description": "Macc patch request properties", + "properties": { + "commitment": { + "$ref": "#/definitions/Commitment", + "description": "Commitment towards the benefit." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End DateTime in UTC." + }, + "allowContributors": { + "type": "boolean", + "description": "Setting this to true means multi-entity." + }, + "automaticShortfall": { + "$ref": "#/definitions/EnablementMode", + "description": "Represents the enablement status of a feature or settings." + }, + "automaticShortfallSuppressReason": { + "$ref": "#/definitions/AutomaticShortfallSuppressReason", + "description": "Optional field to record suppression reason for automatic shortfall." + }, + "displayName": { + "type": "string", + "description": "Display name" + }, + "status": { + "$ref": "#/definitions/MaccMilestoneStatus", + "description": "Represents the current status of the Milestone." + }, + "milestones": { + "type": "array", + "description": "List of milestones to update or add.", + "items": { + "$ref": "#/definitions/MaccMilestone" + }, + "x-ms-identifiers": [ + "milestoneId" + ] + }, + "primaryResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified resource identifier of the primary MACC. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}." + }, + "primaryBillingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified billing account resource identifier of the primary MACC. Format must be Azure Resource ID: /providers/Microsoft.Billing/billingAccounts/{acctId:orgId}.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + } + } + }, + "MaccProvisioningState": { + "type": "string", + "description": "Provisioning states of MACC.", + "enum": [ + "Unknown", + "Pending", + "Scheduled", + "Active", + "Succeeded", + "Canceled", + "Failed", + "ShortfallPending", + "Stopped", + "PendingSettlement", + "ShortfallCharged", + "ShortfallWaived" + ], + "x-ms-enum": { + "name": "MaccProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Scheduled", + "value": "Scheduled" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "ShortfallPending", + "value": "ShortfallPending" + }, + { + "name": "Stopped", + "value": "Stopped" + }, + { + "name": "PendingSettlement", + "value": "PendingSettlement" + }, + { + "name": "ShortfallCharged", + "value": "ShortfallCharged" + }, + { + "name": "ShortfallWaived", + "value": "ShortfallWaived" + } + ] + } + }, + "MaccStatus": { + "type": "string", + "description": "Represents the current status of the MACC.", + "enum": [ + "Unknown", + "Scheduled", + "Active", + "Pending", + "Failed", + "Canceled", + "Completed", + "Stopped", + "PendingSettlement", + "ShortfallCharged", + "ShortfallWaived" + ], + "x-ms-enum": { + "name": "MaccStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "Scheduled", + "value": "Scheduled" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Pending", + "value": "Pending" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Completed", + "value": "Completed" + }, + { + "name": "Stopped", + "value": "Stopped" + }, + { + "name": "PendingSettlement", + "value": "PendingSettlement" + }, + { + "name": "ShortfallCharged", + "value": "ShortfallCharged" + }, + { + "name": "ShortfallWaived", + "value": "ShortfallWaived" + } + ] + } + }, + "MaccValidateModel": { + "type": "object", + "description": "MACC validate model", + "properties": { + "properties": { + "$ref": "#/definitions/MaccModelProperties", + "description": "MACC validate properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitValidateModel" + } + ], + "x-ms-discriminator-value": "MACC" + }, + "ManagedServiceIdentity": { + "type": "object", + "description": "Managed service identity (system assigned and/or user assigned identities)", + "properties": { + "principalId": { + "type": "string", + "format": "uuid", + "description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + "readOnly": true + }, + "tenantId": { + "type": "string", + "format": "uuid", + "description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ManagedServiceIdentityType", + "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed)." + }, + "userAssignedIdentities": { + "type": "object", + "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + "additionalProperties": { + "$ref": "../../../../../common-types/resource-management/v6/managedidentity.json#/definitions/UserAssignedIdentity" + } + } + }, + "required": [ + "type" + ] + }, + "ManagedServiceIdentityType": { + "type": "string", + "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ], + "x-ms-enum": { + "name": "ManagedServiceIdentityType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None" + }, + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + }, + { + "name": "SystemAssigned,UserAssigned", + "value": "SystemAssigned,UserAssigned" + } + ] + } + }, + "MarketSetPricesItems": { + "type": "object", + "description": "Items in the MarketSetPrices array.", + "properties": { + "markets": { + "type": "array", + "items": { + "type": "string" + } + }, + "value": { + "type": "number", + "format": "float", + "description": "The locked price for the priceable node. Validation: Required. Must be greater than or equal to 0. If the case of billing plans. This represents the price for each cycle charge." + }, + "currency": { + "type": "string", + "description": "The currency of the locked price value. Validation: Required. Must be a valid ISO 4217 3-letter currency code." + } + }, + "required": [ + "markets", + "value", + "currency" + ] + }, + "PaymentDetail": { + "type": "object", + "description": "Information about payment related to a savings plan order.", + "properties": { + "dueDate": { + "type": "string", + "format": "date-time-rfc7231", + "description": "Date when the payment needs to be done." + }, + "paymentDate": { + "type": "string", + "format": "date-time-rfc7231", + "description": "Date when the transaction is completed. Is null when it is scheduled." + }, + "pricingCurrencyTotal": { + "$ref": "#/definitions/Price", + "description": "Amount in pricing currency. Tax not included." + }, + "billingCurrencyTotal": { + "$ref": "#/definitions/Price", + "description": "Amount charged in Billing currency. Tax not included. Is null for future payments" + }, + "status": { + "$ref": "#/definitions/PaymentStatus", + "description": "Describes whether the payment is completed, failed, cancelled or scheduled in the future." + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo", + "readOnly": true + }, + "billingAccount": { + "type": "string", + "description": "Billing account" + } + } + }, + "PaymentStatus": { + "type": "string", + "description": "Describes whether the payment is completed, failed, cancelled or scheduled in the future.", + "enum": [ + "Succeeded", + "Failed", + "Scheduled", + "Cancelled" + ], + "x-ms-enum": { + "name": "PaymentStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Scheduled", + "value": "Scheduled" + }, + { + "name": "Cancelled", + "value": "Cancelled" + } + ] + } + }, + "Plan": { + "type": "object", + "description": "Plan for the resource.", + "properties": { + "name": { + "type": "string", + "description": "A user defined name of the 3rd Party Artifact that is being procured." + }, + "publisher": { + "type": "string", + "description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic" + }, + "product": { + "type": "string", + "description": "The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding." + }, + "promotionCode": { + "type": "string", + "description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact." + }, + "version": { + "type": "string", + "description": "The version of the desired product/artifact." + } + }, + "required": [ + "name", + "publisher", + "product" + ] + }, + "Price": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "The ISO 4217 3-letter currency code for the currency used by this purchase record." + }, + "amount": { + "type": "number", + "format": "double" + } + } + }, + "PriceGuaranteeProperties": { + "type": "object", + "description": "Set only in price guarantee scenario.", + "properties": { + "pricingPolicy": { + "$ref": "#/definitions/PricingPolicy", + "description": "Supported values: Protected, Locked" + }, + "priceGuaranteeDate": { + "type": "string", + "format": "date-time", + "description": "The date on which prices are to be used for guarantee calculation. Validation: expected to be 00 hours, Format: 2024-09-30T00:00:00Z. Must be in UTC." + } + } + }, + "PricingCurrencyDuration": { + "type": "string", + "description": "Represents either billing plan or savings plan term in ISO 8601 format.", + "enum": [ + "P1M", + "P1Y", + "P3Y" + ], + "x-ms-enum": { + "name": "PricingCurrencyDuration", + "modelAsString": true, + "values": [ + { + "name": "P1M", + "value": "P1M" + }, + { + "name": "P1Y", + "value": "P1Y" + }, + { + "name": "P3Y", + "value": "P3Y" + } + ] + } + }, + "PricingCurrencyTotal": { + "type": "object", + "properties": { + "duration": { + "$ref": "#/definitions/PricingCurrencyDuration", + "description": "Represents either billing plan or savings plan term in ISO 8601 format." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Price" + } + ] + }, + "PricingPolicy": { + "type": "string", + "description": "Supported values: Protected, Locked", + "enum": [ + "Protected", + "Locked" + ], + "x-ms-enum": { + "name": "PricingPolicy", + "modelAsString": true, + "values": [ + { + "name": "Protected", + "value": "Protected" + }, + { + "name": "Locked", + "value": "Locked" + } + ] + } + }, + "PrimaryConditionalCreditProperties": { + "type": "object", + "description": "Properties for primary conditional credit.", + "properties": { + "systemId": { + "type": "string", + "description": "System identifier shared between primary and contributor conditional credits representing the same conditional credit program" + }, + "allowContributors": { + "$ref": "#/definitions/EnablementMode", + "description": "Whether this conditional credit allows contributor billing accounts" + }, + "milestones": { + "type": "array", + "description": "List of milestones for this conditional credit (must include awards)", + "items": { + "$ref": "#/definitions/ConditionalCreditMilestoneBase" + } + } + }, + "required": [ + "systemId" + ], + "allOf": [ + { + "$ref": "#/definitions/ConditionalCreditProperties" + } + ], + "x-ms-discriminator-value": "Primary" + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state", + "enum": [ + "Creating", + "PendingBilling", + "ConfirmedBilling", + "Created", + "Succeeded", + "Cancelled", + "Expired", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "PendingBilling", + "value": "PendingBilling" + }, + { + "name": "ConfirmedBilling", + "value": "ConfirmedBilling" + }, + { + "name": "Created", + "value": "Created" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Cancelled", + "value": "Cancelled" + }, + { + "name": "Expired", + "value": "Expired" + }, + { + "name": "Failed", + "value": "Failed" + } + ] + } + }, + "PurchaseRequest": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "The SKU to be applied for this resource" + }, + "properties": { + "$ref": "#/definitions/PurchaseRequestProperties", + "x-ms-client-flatten": true + } + } + }, + "PurchaseRequestProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name of the savings plan" + }, + "billingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing the benefit" + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Represent benefit term in ISO 8601 format." + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans." + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType", + "description": "Type of the Applied Scope." + }, + "commitment": { + "$ref": "#/definitions/Commitment", + "description": "Commitment towards the benefit." + }, + "effectiveDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the savings plan starts providing benefit from.", + "readOnly": true + }, + "renew": { + "type": "boolean", + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time.", + "default": false + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties", + "description": "Properties specific to applied scope type. Not required if not applicable." + } + } + }, + "RenewProperties": { + "type": "object", + "properties": { + "purchaseProperties": { + "$ref": "#/definitions/PurchaseRequest" + } + } + }, + "ReservationOrderAliasRequest": { + "type": "object", + "description": "Reservation order alias", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "Reservation order SKU" + }, + "location": { + "type": "string", + "description": "The Azure Region where the reservation benefits are applied to." + }, + "properties": { + "$ref": "#/definitions/ReservationOrderAliasRequestProperties", + "description": "Reservation order alias request properties", + "x-ms-client-flatten": true + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/Resource" + } + ] + }, + "ReservationOrderAliasRequestProperties": { + "type": "object", + "description": "Reservation properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + }, + "billingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing the benefit" + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Represent benefit term in ISO 8601 format." + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans." + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType", + "description": "Type of the Applied Scope." + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties", + "description": "Properties specific to applied scope type. Not required if not applicable." + }, + "quantity": { + "type": "integer", + "format": "int32", + "description": "Total Quantity of the SKUs purchased in the Reservation.", + "minimum": 1 + }, + "renew": { + "type": "boolean", + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time.", + "default": false + }, + "reservedResourceType": { + "$ref": "#/definitions/ReservedResourceType", + "description": "The type of the resource that is being reserved." + }, + "reviewDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the date-time when the Azure Hybrid Benefit needs to be reviewed." + }, + "reservedResourceProperties": { + "$ref": "#/definitions/ReservationOrderAliasRequestPropertiesReservedResourceProperties", + "description": "Properties specific to each reserved resource type. Not required if not applicable." + } + } + }, + "ReservationOrderAliasRequestPropertiesReservedResourceProperties": { + "type": "object", + "description": "Properties specific to each reserved resource type. Not required if not applicable.", + "properties": { + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility", + "description": "Turning this on will apply the reservation discount to other VMs in the same VM size group." + } + } + }, + "ReservationOrderAliasResponse": { + "type": "object", + "description": "Reservation order alias", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "Reservation order SKU" + }, + "location": { + "type": "string", + "description": "The Azure Region where the reserved resource lives." + }, + "properties": { + "$ref": "#/definitions/ReservationOrderAliasResponseProperties", + "description": "Reservation order alias response properties", + "x-ms-client-flatten": true + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "ReservationOrderAliasResponseProperties": { + "type": "object", + "description": "Reservation properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + }, + "reservationOrderId": { + "type": "string", + "description": "Identifier of the reservation order created", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state", + "readOnly": true + }, + "billingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing the benefit" + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Represent benefit term in ISO 8601 format." + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans." + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType", + "description": "Type of the Applied Scope." + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties", + "description": "Properties specific to applied scope type. Not required if not applicable." + }, + "quantity": { + "type": "integer", + "format": "int32", + "description": "Total Quantity of the SKUs purchased in the Reservation." + }, + "renew": { + "type": "boolean", + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time.", + "default": false + }, + "reservedResourceType": { + "$ref": "#/definitions/ReservedResourceType", + "description": "The type of the resource that is being reserved." + }, + "reviewDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the date-time when the Reservation needs to be reviewed." + }, + "reservedResourceProperties": { + "$ref": "#/definitions/ReservationOrderAliasResponsePropertiesReservedResourceProperties", + "description": "Properties specific to each reserved resource type. Not required if not applicable." + } + } + }, + "ReservationOrderAliasResponsePropertiesReservedResourceProperties": { + "type": "object", + "description": "Properties specific to each reserved resource type. Not required if not applicable.", + "properties": { + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility", + "description": "Turning this on will apply the reservation discount to other VMs in the same VM size group." + } + } + }, + "ReservedResourceType": { + "type": "string", + "description": "The type of the resource that is being reserved.", + "enum": [ + "VirtualMachines", + "SqlDatabases", + "SuseLinux", + "CosmosDb", + "RedHat", + "SqlDataWarehouse", + "VMwareCloudSimple", + "RedHatOsa", + "Databricks", + "AppService", + "ManagedDisk", + "BlockBlob", + "RedisCache", + "AzureDataExplorer", + "MySql", + "MariaDb", + "PostgreSql", + "DedicatedHost", + "SapHana", + "SqlAzureHybridBenefit", + "AVS", + "DataFactory", + "NetAppStorage", + "AzureFiles", + "SqlEdge", + "VirtualMachineSoftware" + ], + "x-ms-enum": { + "name": "ReservedResourceType", + "modelAsString": true, + "values": [ + { + "name": "VirtualMachines", + "value": "VirtualMachines" + }, + { + "name": "SqlDatabases", + "value": "SqlDatabases" + }, + { + "name": "SuseLinux", + "value": "SuseLinux" + }, + { + "name": "CosmosDb", + "value": "CosmosDb" + }, + { + "name": "RedHat", + "value": "RedHat" + }, + { + "name": "SqlDataWarehouse", + "value": "SqlDataWarehouse" + }, + { + "name": "VMwareCloudSimple", + "value": "VMwareCloudSimple" + }, + { + "name": "RedHatOsa", + "value": "RedHatOsa" + }, + { + "name": "Databricks", + "value": "Databricks" + }, + { + "name": "AppService", + "value": "AppService" + }, + { + "name": "ManagedDisk", + "value": "ManagedDisk" + }, + { + "name": "BlockBlob", + "value": "BlockBlob" + }, + { + "name": "RedisCache", + "value": "RedisCache" + }, + { + "name": "AzureDataExplorer", + "value": "AzureDataExplorer" + }, + { + "name": "MySql", + "value": "MySql" + }, + { + "name": "MariaDb", + "value": "MariaDb" + }, + { + "name": "PostgreSql", + "value": "PostgreSql" + }, + { + "name": "DedicatedHost", + "value": "DedicatedHost" + }, + { + "name": "SapHana", + "value": "SapHana" + }, + { + "name": "SqlAzureHybridBenefit", + "value": "SqlAzureHybridBenefit" + }, + { + "name": "AVS", + "value": "AVS" + }, + { + "name": "DataFactory", + "value": "DataFactory" + }, + { + "name": "NetAppStorage", + "value": "NetAppStorage" + }, + { + "name": "AzureFiles", + "value": "AzureFiles" + }, + { + "name": "SqlEdge", + "value": "SqlEdge" + }, + { + "name": "VirtualMachineSoftware", + "value": "VirtualMachineSoftware" + } + ] + } + }, + "ResourceSku": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "RoleAssignmentEntity": { + "type": "object", + "description": "Role assignment entity", + "properties": { + "id": { + "type": "string", + "description": "Role assignment entity id" + }, + "name": { + "type": "string", + "description": "Role assignment entity name" + }, + "properties": { + "$ref": "#/definitions/RoleAssignmentEntityProperties", + "description": "Role assignment entity properties", + "x-ms-client-flatten": true + } + } + }, + "RoleAssignmentEntityProperties": { + "type": "object", + "description": "Role assignment entity properties", + "properties": { + "principalId": { + "type": "string", + "description": "Principal Id" + }, + "roleDefinitionId": { + "type": "string", + "description": "Role definition id" + }, + "scope": { + "type": "string", + "description": "Scope of the role assignment entity" + } + } + }, + "SavingsPlanModel": { + "type": "object", + "description": "Savings plan", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "Savings plan SKU" + }, + "properties": { + "$ref": "#/definitions/SavingsPlanModelProperties", + "description": "Savings plan properties", + "x-ms-client-flatten": true + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "SavingsPlanModelList": { + "type": "object", + "description": "Paged collection of SavingsPlanModel items", + "properties": { + "value": { + "type": "array", + "description": "The SavingsPlanModel items on this page", + "items": { + "$ref": "#/definitions/SavingsPlanModel" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "SavingsPlanModelListResult": { + "type": "object", + "description": "Represents the result of listing savings plan models", + "properties": { + "value": { + "type": "array", + "description": "The list of savings plans.", + "items": { + "$ref": "#/definitions/SavingsPlanModel" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page.", + "readOnly": true + }, + "additionalProperties": { + "type": "array", + "description": "The roll out count summary of the savings plans", + "items": { + "$ref": "#/definitions/SavingsPlanSummary" + }, + "readOnly": true + } + } + }, + "SavingsPlanModelProperties": { + "type": "object", + "description": "Savings plan properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state", + "readOnly": true + }, + "displayProvisioningState": { + "type": "string", + "description": "The provisioning state of the savings plan for display, e.g. Succeeded", + "readOnly": true + }, + "billingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing the benefit" + }, + "billingProfileId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing profile where the savings plan is applied. Present only for Field-led or Customer-led customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts", + "scopes": [ + "Tenant" + ] + } + ] + } + }, + "customerId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "scopes": [ + "Tenant" + ], + "type": "Microsoft.Billing/billingAccounts/customers" + } + ] + } + }, + "billingAccountId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing account where the savings plan is applied. Present only for Enterprise Agreement customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "scopes": [ + "Tenant" + ], + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Represent benefit term in ISO 8601 format." + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans." + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType", + "description": "Type of the Applied Scope." + }, + "userFriendlyAppliedScopeType": { + "type": "string", + "description": "The applied scope type of the savings plan for display, e.g. Shared", + "readOnly": true + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties", + "description": "Properties specific to applied scope type. Not required if not applicable." + }, + "commitment": { + "$ref": "#/definitions/Commitment", + "description": "Commitment towards the benefit." + }, + "effectiveDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the savings plan starts providing benefit from.", + "readOnly": true + }, + "expiryDateTime": { + "type": "string", + "format": "date-time", + "description": "Expiry date time", + "readOnly": true + }, + "purchaseDateTime": { + "type": "string", + "format": "date-time", + "description": "Date time when the savings plan was purchased", + "readOnly": true + }, + "benefitStartTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the savings plan benefit started." + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo", + "readOnly": true + }, + "renew": { + "type": "boolean", + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time.", + "default": false + }, + "utilization": { + "$ref": "#/definitions/Utilization", + "description": "Savings plan utilization", + "readOnly": true + }, + "renewSource": { + "type": "string", + "description": "SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed." + }, + "renewDestination": { + "type": "string", + "description": "SavingsPlan Id of the SavingsPlan which is purchased because of renew." + }, + "renewProperties": { + "$ref": "#/definitions/RenewProperties" + } + } + }, + "SavingsPlanOrderAliasModel": { + "type": "object", + "description": "Savings plan order alias", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "Savings plan SKU" + }, + "kind": { + "type": "string", + "description": "Resource provider kind" + }, + "properties": { + "$ref": "#/definitions/SavingsPlanOrderAliasProperties", + "description": "Savings plan order alias properties", + "x-ms-client-flatten": true + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "SavingsPlanOrderAliasProperties": { + "type": "object", + "description": "Savings plan properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + }, + "savingsPlanOrderId": { + "type": "string", + "description": "Identifier of the savings plan created", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state", + "readOnly": true + }, + "billingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing the benefit" + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Represent benefit term in ISO 8601 format." + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans." + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType", + "description": "Type of the Applied Scope." + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties", + "description": "Properties specific to applied scope type. Not required if not applicable." + }, + "commitment": { + "$ref": "#/definitions/Commitment", + "description": "Commitment towards the benefit." + }, + "renew": { + "type": "boolean", + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time.", + "default": false + } + } + }, + "SavingsPlanOrderModel": { + "type": "object", + "description": "Savings plan order", + "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "Savings plan SKU" + }, + "properties": { + "$ref": "#/definitions/SavingsPlanOrderModelProperties", + "description": "Savings plan order properties", + "x-ms-client-flatten": true + } + }, + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "SavingsPlanOrderModelList": { + "type": "object", + "description": "Paged collection of SavingsPlanOrderModel items", + "properties": { + "value": { + "type": "array", + "description": "The SavingsPlanOrderModel items on this page", + "items": { + "$ref": "#/definitions/SavingsPlanOrderModel" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "SavingsPlanOrderModelProperties": { + "type": "object", + "description": "Savings plan order properties", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state", + "readOnly": true + }, + "billingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing the benefit" + }, + "billingProfileId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing profile where the savings plan is applied. Present only for Field-led or Customer-led customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "scopes": [ + "Tenant" + ], + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "customerId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "scopes": [ + "Tenant" + ], + "type": "Microsoft.Billing/billingAccounts/customers" + } + ] + } + }, + "billingAccountId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified identifier of the billing account where the savings plan is applied. Present only for Enterprise Agreement customers.", + "readOnly": true, + "x-ms-arm-id-details": { + "allowedResources": [ + { + "scopes": [ + "Tenant" + ], + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Represent benefit term in ISO 8601 format." + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly billing plans." + }, + "expiryDateTime": { + "type": "string", + "format": "date-time", + "description": "Expiry date time", + "readOnly": true + }, + "benefitStartTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the savings plan benefit started." + }, + "planInformation": { + "$ref": "#/definitions/BillingPlanInformation", + "description": "Information describing the type of billing plan for this savings plan." + }, + "savingsPlans": { + "type": "array", + "items": { + "type": "string" + } + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo", + "readOnly": true + } + } + }, + "SavingsPlanSummary": { + "type": "object", + "description": "Savings plans list summary", + "properties": { + "name": { + "type": "string", + "description": "This property has value 'summary'", + "readOnly": true + }, + "value": { + "$ref": "#/definitions/SavingsPlanSummaryCount", + "description": "The roll up count summary of savings plans in each state" + } + } + }, + "SavingsPlanSummaryCount": { + "type": "object", + "description": "The roll up count summary of savings plans in each state", + "properties": { + "succeededCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Succeeded state", + "readOnly": true + }, + "failedCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Failed state", + "readOnly": true + }, + "expiringCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Expiring state", + "readOnly": true + }, + "expiredCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Expired state", + "readOnly": true + }, + "pendingCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Pending state", + "readOnly": true + }, + "cancelledCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Cancelled state", + "readOnly": true + }, + "processingCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Processing state", + "readOnly": true + }, + "noBenefitCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in No Benefit state", + "readOnly": true + }, + "warningCount": { + "type": "number", + "format": "float", + "description": "The number of savings plans in Warning state", + "readOnly": true + } + } + }, + "SavingsPlanUpdateRequest": { + "type": "object", + "description": "Savings plan patch request", + "properties": { + "properties": { + "$ref": "#/definitions/SavingsPlanUpdateRequestProperties", + "description": "Savings plan patch request" + } + } + }, + "SavingsPlanUpdateRequestProperties": { + "type": "object", + "description": "Savings plan patch request", + "properties": { + "displayName": { + "type": "string", + "description": "Display name" + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType", + "description": "Type of the Applied Scope." + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties", + "description": "Properties specific to applied scope type. Not required if not applicable." + }, + "renew": { + "type": "boolean", + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time.", + "default": false + }, + "renewProperties": { + "$ref": "#/definitions/RenewProperties" + } + } + }, + "SavingsPlanUpdateValidateRequest": { + "type": "object", + "properties": { + "benefits": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanUpdateRequestProperties" + }, + "x-ms-identifiers": [] + } + } + }, + "SavingsPlanValidResponseProperty": { + "type": "object", + "description": "Benefit scope response property", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the provided input was valid" + }, + "reasonCode": { + "type": "string", + "description": "Failure reason code if the provided input was invalid" + }, + "reason": { + "type": "string", + "description": "Failure reason if the provided input was invalid" + } + } + }, + "SavingsPlanValidateModel": { + "type": "object", + "description": "Savings plan validate model", + "properties": { + "name": { + "type": "string", + "description": "Name of the savings plan order alias", + "pattern": "^[a-zA-Z0-9_\\-\\.]+$" + }, + "sku": { + "$ref": "#/definitions/ResourceSku", + "description": "Savings plan SKU" + }, + "kind": { + "type": "string", + "description": "Resource provider kind" + }, + "properties": { + "$ref": "#/definitions/SavingsPlanOrderAliasProperties", + "description": "Savings plan order alias properties", + "x-ms-client-flatten": true + }, + "id": { + "type": "string", + "format": "arm-id", + "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/Azure.Core.armResourceType", + "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", + "readOnly": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/systemData", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "readOnly": true + } + }, + "required": [ + "name", + "sku" + ], + "allOf": [ + { + "$ref": "#/definitions/BenefitValidateModel" + } + ], + "x-ms-discriminator-value": "SavingsPlan" + }, + "SavingsPlanValidateResponse": { + "type": "object", + "properties": { + "benefits": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanValidResponseProperty" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page." + } + } + }, + "SellerResourceListRequest": { + "type": "object", + "description": "List MACCs under a billing account", + "properties": { + "properties": { + "$ref": "#/definitions/SellerResourceListRequestProperties", + "description": "Request properties to list maccs under a billing account", + "x-ms-client-flatten": true + } + } + }, + "SellerResourceListRequestProperties": { + "type": "object", + "description": "Request properties to list maccs under a billing account", + "properties": { + "billingAccountResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified billing account resource identifier where the benefit is applied. Present only for Enterprise Agreement customers.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Billing/billingAccounts" + } + ] + } + }, + "$filter": { + "type": "string", + "description": "This is an OData expresssion to filter the list of MACCs based on the properties of MACC passed in the filter.", + "x-ms-client-name": "filter" + }, + "contributors": { + "type": "boolean", + "description": "Setting it to true will return the list of contributors associated with the MACC." + }, + "milestones": { + "type": "boolean", + "description": "Setting it to true will return the list of milestones associated with the MACC." + }, + "primaryResourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified resource identifier of the primary MACC. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}." + } + }, + "required": [ + "billingAccountResourceId" + ] + }, + "Shortfall": { + "type": "object", + "description": "MACC shortfall", + "properties": { + "productCode": { + "type": "string", + "description": "Represents catalog UPN.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "charge": { + "$ref": "#/definitions/Commitment", + "description": "Shortfall amount with grain." + }, + "startAt": { + "type": "string", + "format": "date-time", + "description": "Start DateTime." + }, + "endAt": { + "type": "string", + "format": "date-time", + "description": "End DateTime in UTC." + }, + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Fully-qualified resource identifier of the credits associated with the shortfall." + }, + "balanceVersion": { + "type": "number", + "format": "float", + "description": "Points to BalanceVersion document that indicates the remaining commitment balance when the credit was created." + }, + "systemId": { + "type": "string", + "description": "This is an identifier of the shortfall which will not change for its lifetime.", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "Sku": { + "type": "object", + "description": "The resource model definition representing SKU", + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU. E.g. P3. It is typically a letter+number code" + }, + "tier": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/SkuTier", + "description": "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT." + }, + "size": { + "type": "string", + "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code." + }, + "family": { + "type": "string", + "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted." + } + }, + "required": [ + "name" + ] + }, + "Term": { + "type": "string", + "description": "Represent benefit term in ISO 8601 format.", + "enum": [ + "P1Y", + "P3Y", + "P5Y" + ], + "x-ms-enum": { + "name": "Term", + "modelAsString": true, + "values": [ + { + "name": "P1Y", + "value": "P1Y" + }, + { + "name": "P3Y", + "value": "P3Y" + }, + { + "name": "P5Y", + "value": "P5Y" + } + ] + } + }, + "Utilization": { + "type": "object", + "description": "Savings plan utilization", + "properties": { + "trend": { + "type": "string", + "description": "The number of days trend for a savings plan", + "readOnly": true + }, + "aggregates": { + "type": "array", + "description": "The array of aggregates of a savings plan's utilization", + "items": { + "$ref": "#/definitions/UtilizationAggregates" + }, + "x-ms-identifiers": [] + } + } + }, + "UtilizationAggregates": { + "type": "object", + "description": "The aggregate values of savings plan utilization", + "properties": { + "grain": { + "type": "number", + "format": "float", + "description": "The grain of the aggregate", + "readOnly": true + }, + "grainUnit": { + "type": "string", + "description": "The grain unit of the aggregate", + "readOnly": true + }, + "value": { + "type": "number", + "format": "float", + "description": "The aggregate value", + "readOnly": true + }, + "valueUnit": { + "type": "string", + "description": "The aggregate value unit", + "readOnly": true + } + } + } + }, + "parameters": {} +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableConditionalCreditList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableConditionalCreditList.json new file mode 100644 index 000000000000..295ef35d1b26 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableConditionalCreditList.json @@ -0,0 +1,132 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/{acctId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/applicableConditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/conditionalcredits/testprimaryconditionalcredit", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "conditionalCredit_20250802", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/applicableConditionalCredits/conditionalCredit_20250802", + "location": "global", + "properties": { + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/conditionalcredits/testprimaryconditionalcredit2", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250802", + "endAt": "2026-05-01T00:00:00Z", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q3 Milestone", + "endAt": "2026-02-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440003", + "spendTarget": { + "amount": 75000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc5", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250802" + }, + "systemData": { + "createdAt": "2025-09-02T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-02T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key3": "value3" + } + } + ] + } + } + }, + "operationId": "ConditionalCredits_ScopeList", + "title": "ConditionalCreditScopeList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableDiscountsList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableDiscountsList.json new file mode 100644 index 000000000000..f3c6c34d2b0b --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableDiscountsList.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/{acctId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "13810867107109237", + "type": "Microsoft.BillingBenefits/applicableDiscounts", + "id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/13810867107109237", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "63810867107109237", + "type": "Microsoft.BillingBenefits/applicableDiscounts", + "id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/63810867107109237", + "location": "global", + "properties": { + "benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "63810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Discounts_ScopeList", + "title": "DiscountScopeList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableMaccsList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableMaccsList.json new file mode 100644 index 000000000000..742128d02c25 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ApplicableMaccsList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "13810867107109237", + "type": "Microsoft.BillingBenefits/applicableMaccs", + "id": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/providers/Microsoft.BillingBenefits/applicableMaccs/13810867107109237", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "ApplicableMaccs_List", + "title": "DiscountScopeList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditCreateContributor.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditCreateContributor.json new file mode 100644 index 000000000000..fbad90b1c93a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditCreateContributor.json @@ -0,0 +1,114 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "displayName": "Contributor Conditional Credit 20250801", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "startAt": "2025-09-01T00:00:00Z", + "systemId": "CACO-SYSTEM-001" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + }, + "conditionalCreditName": "conditionalCredit_contributor_20250801", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_contributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_contributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Contributor Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q1 Milestone", + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Active" + }, + { + "name": "Q2 Milestone", + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-001" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + } + }, + "201": { + "body": { + "name": "conditionalCredit_contributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_contributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Contributor Conditional Credit 20250801", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "provisioningState": "Pending", + "startAt": "2025-09-01T00:00:00Z", + "status": "Pending", + "systemId": "CACO-SYSTEM-001" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/5f3gggg8-c442-5gdc-bc22-c6gb5a479299?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_CreateOrUpdate", + "title": "ConditionalCreditCreateContributor" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditCreatePrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditCreatePrimary.json new file mode 100644 index 000000000000..2e464c98bf12 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditCreatePrimary.json @@ -0,0 +1,221 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "allowContributors": "Enabled", + "displayName": "Conditional Credit 20250801", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "startAt": "2025-10-01T00:00:00Z" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + } + }, + { + "name": "Q2 Milestone", + "award": { + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "startAt": "2026-01-01T00:00:00Z" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + } + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2025-07-01T00:00:00Z", + "systemId": "CACO-SYSTEM-20250801" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Active" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2025-07-01T00:00:00Z", + "status": "Pending", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_CreateOrUpdate", + "title": "ConditionalCreditCreatePrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditDelete.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditDelete.json new file mode 100644 index 000000000000..65a892e861f9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditDelete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/6d3hhhh9-d553-6hde-cd33-d7hc6b580300?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801?api-version=2025-05-01-preview", + "Retry-After": 5 + } + }, + "204": { + "description": "The resource has been deleted." + } + }, + "operationId": "ConditionalCredits_Delete", + "title": "ConditionalCreditDelete" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditGet.json new file mode 100644 index 000000000000..ec7005b968f5 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditGet.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "ConditionalCredits_Get", + "title": "ConditionalCreditGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditUpdate.json new file mode 100644 index 000000000000..ee2f77f9b6ca --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditUpdate.json @@ -0,0 +1,182 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Updated Conditional Credit 20250801", + "milestones": [ + { + "name": "Q1 Updated Milestone", + "award": { + "credit": { + "amount": 6000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "startAt": "2025-10-01T00:00:00Z" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 60000, + "currencyCode": "USD" + } + }, + { + "name": "Q2 Milestone", + "award": { + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "startAt": "2026-01-01T00:00:00Z" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + } + }, + { + "name": "Q3 New Milestone", + "award": { + "credit": { + "amount": 15000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-01T00:00:00Z", + "startAt": "2026-04-01T00:00:00Z" + }, + "endAt": "2026-04-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440003", + "spendTarget": { + "amount": 150000, + "currencyCode": "USD" + } + } + ] + }, + "tags": { + "key1": "updated_value1", + "key3": "value3" + } + }, + "conditionalCreditName": "conditionalCredit_20250801", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Updated Conditional Credit 20250801", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Updated Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 6000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 60000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + }, + { + "name": "Q3 New Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 15000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-04-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-04-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440003", + "spendTarget": { + "amount": 150000, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CONDITIONALCREDITS-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T02:15:30.2080047Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "updated_value1", + "key3": "value3" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_Update", + "title": "ConditionalCreditUpdate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditUpdateContributor.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditUpdateContributor.json new file mode 100644 index 000000000000..60d086db16f4 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditUpdateContributor.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Updated Contributor Conditional Credit 20250801" + }, + "tags": { + "environment": "test", + "team": "finance" + } + }, + "conditionalCreditName": "conditionalCreditContributor_20250801", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "conditionalCreditContributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCreditContributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Updated Contributor Conditional Credit 20250801", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q1 Milestone", + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CONDITIONALCREDITS-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T02:15:30.2080047Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "test", + "team": "finance" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/7e3ffff7-b331-4fcb-ab11-b5fa49368199?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCreditContributor_20250801?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "ConditionalCredits_Update", + "title": "ConditionalCreditUpdateContributor" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditsListByResourceGroup.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditsListByResourceGroup.json new file mode 100644 index 000000000000..1404216439f1 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditsListByResourceGroup.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits?api-version=2025-05-01-preview&$skiptoken=abcd1234", + "value": [ + { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "conditionalCredit_simple_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_simple_20250801", + "location": "global", + "properties": { + "allowContributors": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Simple Conditional Credit", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-SIMPLE-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "production" + } + } + ] + } + } + }, + "operationId": "ConditionalCredits_ListByResourceGroup", + "title": "ConditionalCreditsListByResourceGroup" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditsListBySubscription.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditsListBySubscription.json new file mode 100644 index 000000000000..9509394b858f --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ConditionalCreditsListBySubscription.json @@ -0,0 +1,168 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/conditionalCredits?api-version=2025-05-01-preview&$skiptoken=xyz5678", + "value": [ + { + "name": "conditionalCredit_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "location": "global", + "properties": { + "allowContributors": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "name": "Q1 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-01-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2025-10-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "award": { + "balanceVersion": 13, + "credit": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-04-01T00:00:00Z", + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testcredit", + "startAt": "2026-01-01T00:00:00Z", + "systemId": "credit98765432" + }, + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-07-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "conditionalCredit_contributor_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_contributor_20250801", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{contributorAcctId:orgId}", + "displayName": "Contributor Conditional Credit 20250801", + "endAt": "2026-04-01T00:00:00Z", + "entityType": "Contributor", + "milestones": [ + { + "name": "Q1 Milestone", + "endAt": "2025-10-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440001", + "spendTarget": { + "amount": 50000, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "name": "Q2 Milestone", + "endAt": "2026-01-01T00:00:00Z", + "milestoneId": "550e8400-e29b-41d4-a716-446655440002", + "spendTarget": { + "amount": 100000, + "currencyCode": "USD" + }, + "status": "Active" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_20250801", + "productCode": "DZH318Z0BPS6:0002:DZH318Z0BQZR", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "dev", + "team": "finance" + } + }, + { + "name": "conditionalCredit_simple_20250801", + "type": "Microsoft.BillingBenefits/conditionalCredits", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_03/providers/Microsoft.BillingBenefits/conditionalCredits/conditionalCredit_simple_20250801", + "location": "global", + "properties": { + "allowContributors": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Simple Conditional Credit", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-09-01T00:00:00Z", + "status": "Active", + "systemId": "CACO-SYSTEM-SIMPLE-20250801" + }, + "systemData": { + "createdAt": "2025-09-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2025-09-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "environment": "production" + } + } + ] + } + } + }, + "operationId": "ConditionalCredits_ListBySubscription", + "title": "ConditionalCreditsListBySubscription" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorCreate.json new file mode 100644 index 000000000000..e2df3408b3fb --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "displayName": "macc contributor 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "macc contributor 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/20000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Create", + "title": "Contributor_Create" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorEndDateUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorEndDateUpdate.json new file mode 100644 index 000000000000..8198bc8390b9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorEndDateUpdate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "endAt": "2023-07-10T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "contributor_macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/contributor_macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Contributor", + "milestones": [], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "Contributor_UpdateEndDate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorGet.json new file mode 100644 index 000000000000..4fdff39e9786 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorGet.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "Contributor_Get" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorGetFromPrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorGetFromPrimary.json new file mode 100644 index 000000000000..98ca3727574b --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorGetFromPrimary.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "contributorName": "macc_contributor_20230614", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + } + }, + "operationId": "Contributors_GetFromPrimary", + "title": "Contributor_GetFromPrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesAndShortfallGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesAndShortfallGet.json new file mode 100644 index 000000000000..df35c78be4bc --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesAndShortfallGet.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 9, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall32109876" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "ContributorWithMilestonesAndShortfall_GetFromPrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesAndShortfallGetFromPrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesAndShortfallGetFromPrimary.json new file mode 100644 index 000000000000..3043c78fe2a0 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesAndShortfallGetFromPrimary.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "contributorName": "macc_contributor_20230614", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 10, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "13810867107109238" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + } + } + } + }, + "operationId": "Contributors_GetFromPrimary", + "title": "Contributor_GetFromPrimary_WithMilestonesAndShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesGet.json new file mode 100644 index 000000000000..fe37178b6830 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesGet.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_contributor_20230614", + "resourceGroupName": "resource_group_name_02", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{contributorCloudSubId}/resourceGroups/resource_group_name_02/providers/Microsoft.BillingBenefits/maccs/macc_contributor_20230614", + "location": "global", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "ContributorWithMilestones_GetFromPrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesGetFromPrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesGetFromPrimary.json new file mode 100644 index 000000000000..39eb23706985 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorWithMilestonesGetFromPrimary.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "contributorName": "macc_contributor_20230614", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc contributor 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + } + }, + "operationId": "Contributors_GetFromPrimary", + "title": "Contributor_GetFromPrimary_WithMilestones" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsListFromApplicableMacc.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsListFromApplicableMacc.json new file mode 100644 index 000000000000..701804535910 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsListFromApplicableMacc.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "systemId": "13810867107109237" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "contributor_20230614", + "type": "Microsoft.BillingBenefits/applicableContributors", + "id": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/providers/Microsoft.BillingBenefits/applicableMaccs/13810867107109237/providers/Microsoft.BillingBenefits/applicableContributors/contributor_20230614", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromApplicableMacc", + "title": "ContributorsScopeList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsListFromPrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsListFromPrimary.json new file mode 100644 index 000000000000..c86b007533c9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsListFromPrimary.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromPrimary", + "title": "Contributors_ListFromPrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsWithMilestonesAndShortfallListFromPrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsWithMilestonesAndShortfallListFromPrimary.json new file mode 100644 index 000000000000..fbff470df7ff --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsWithMilestonesAndShortfallListFromPrimary.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 13, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "13810867107109238" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromPrimary", + "title": "ContributorsWithMilestonesAndShortfall_ListFromPrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsWithMilestonesListFromPrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsWithMilestonesListFromPrimary.json new file mode 100644 index 000000000000..f7b8b844c12d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ContributorsWithMilestonesListFromPrimary.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "type": "Microsoft.BillingBenefits/maccs/contributors", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614/contributors/{contributorCloudSubId}_{rgName}_macc_contributor_20230614", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor Macc 20230614", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "Contributors_ListFromPrimary", + "title": "ContributorsWithMilestones_ListFromPrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditCancel.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditCancel.json new file mode 100644 index 000000000000..d8a56e69dd2d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditCancel.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Canceled" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Cancel", + "title": "CreditCancel" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditCreate.json new file mode 100644 index 000000000000..4c06f75c91ed --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-01-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Create", + "title": "CreditCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditDelete.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditDelete.json new file mode 100644 index 000000000000..23db7482fe22 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + }, + "204": {} + }, + "operationId": "Credits_Delete", + "title": "CreditDelete" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditGet.json new file mode 100644 index 000000000000..4eee21a9a98c --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Credits_Get", + "title": "CreditGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditListApplicableCredits.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditListApplicableCredits.json new file mode 100644 index 000000000000..4d757feb428d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditListApplicableCredits.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "scope": "providers/Microsoft.Billing/billingAccounts/{acctId}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/applicableCredits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/providers/Microsoft.BillingBenefits/applicableCredits/{systemId}", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/12345678", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/1185c37e-d180-5aea-03a3-07e2489791a8:3c9f6394-2029-4f58-bf47-76ebbb03136e_2019-05-31/billingProfiles/6EB6-D7AQ-BG7-TGB", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/1185c37e-d180-5aea-03a3-07e2489791a8:3c9f6394-2029-4f58-bf47-76ebbb03136e_2019-05-31/customers/5334c5c9-e4b0-4170-a015-fa8fff5c226a", + "endAt": "2024-07-01T23:59:59Z", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "reason": { + "description": "Outage credit (SLA)", + "code": 125 + }, + "resourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/credits/testprimarydiscount", + "startAt": "2023-07-01T00:00:00Z", + "status": "Succeeded", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Credits_ListApplicable", + "title": "CreditSourcesListByCredit" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceCreate.json new file mode 100644 index 000000000000..7bc386cc7d6a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceCreate.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Sources_Create", + "title": "CreditSourceCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceDelete.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceDelete.json new file mode 100644 index 000000000000..26f09a5e1e4f --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Sources_Delete", + "title": "CreditSourceDelete" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceGet.json new file mode 100644 index 000000000000..257ad4ea20e5 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Sources_Get", + "title": "CreditSourceGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceTagsUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceTagsUpdate.json new file mode 100644 index 000000000000..5a60f222cfab --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourceTagsUpdate.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "tags": { + "key1": "value4", + "key2": "value5" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "sourceName": "source_20231212", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value4", + "key2": "value5" + } + } + } + }, + "operationId": "Sources_Update", + "title": "CreditSourceTagsUpdate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourcesListByCredit.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourcesListByCredit.json new file mode 100644 index 000000000000..a0d9f1bcdc26 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditSourcesListByCredit.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "source_20231212", + "type": "Microsoft.BillingBenefits/credits/sources", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212/sources/source_20231212", + "location": "global", + "properties": { + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "impactedBillingPeriod": "202304", + "sourceResourceId": "/subscriptions/{subId}", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Sources_ListByCredit", + "title": "CreditSourcesListByCredit" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditTagsUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditTagsUpdate.json new file mode 100644 index 000000000000..40c9bcfdeb03 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditTagsUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "tags": { + "key1": "value4", + "key2": "value5" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileResourceId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value4", + "key2": "value5" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Update", + "title": "CreditTagsUpdate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditsListByResourceGroup.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditsListByResourceGroup.json new file mode 100644 index 000000000000..6642e85727f6 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditsListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Credits_ListByResourceGroup", + "title": "CreditsListByResourceGroup" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditsListBySubscription.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditsListBySubscription.json new file mode 100644 index 000000000000..2019203b2ca0 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/CreditsListBySubscription.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{enrollmentId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-12-12T00:00:00Z", + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Credits_ListBySubscription", + "title": "CreditsListBySubscription" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountCancel.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountCancel.json new file mode 100644 index 000000000000..4db89d852047 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountCancel.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "discountName": "testdiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Canceled", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Discounts_Cancel", + "title": "DiscountCancel" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountGet.json new file mode 100644 index 000000000000..1853d66c98a1 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountGet.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discount_Get", + "title": "DiscountGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountList.json new file mode 100644 index 000000000000..f415501398fa --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Discounts_SubscriptionList", + "title": "DiscountSubscriptionList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountListResourceGroup.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountListResourceGroup.json new file mode 100644 index 000000000000..86f850fa38f6 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountListResourceGroup.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Discounts_ResourceGroupList", + "title": "DiscountsResourceGroupList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreateAffiliate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreateAffiliate.json new file mode 100644 index 000000000000..a5bd391077ec --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreateAffiliate.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "displayName": "Virtual Machines D Series", + "entityType": "Affiliate", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testaffiliatediscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Affiliate", + "primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreateAffiliate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimary.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimary.json new file mode 100644 index 000000000000..d97a3a66d81a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimary.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimary" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryBackfill.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryBackfill.json new file mode 100644 index 000000000000..608e05c5256a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryBackfill.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "ProductFamily", + "productFamilyName": "Azure" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "ProductFamily", + "productFamilyName": "Azure" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "ProductFamily", + "productFamilyName": "Azure" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryBackfill" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithCustomPrice.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithCustomPrice.json new file mode 100644 index 000000000000..3ffe73d759a9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithCustomPrice.json @@ -0,0 +1,172 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPrice", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPrice", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryWithCustomPrice" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json new file mode 100644 index 000000000000..257744ab02d9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithCustomPriceMultiCurrency.json @@ -0,0 +1,214 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + }, + { + "currency": "EUR", + "markets": [ + "FR" + ], + "value": 110.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPriceMultiCurrency", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + }, + { + "currency": "EUR", + "markets": [ + "FR" + ], + "value": 110.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPriceMultiCurrency", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "account", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "customPriceProperties": { + "catalogClaims": [ + { + "catalogClaimsItemType": "NationalCloud", + "value": "USSec" + } + ], + "catalogId": "4", + "marketSetPrices": [ + { + "currency": "USD", + "markets": [ + "US" + ], + "value": 125.16 + }, + { + "currency": "EUR", + "markets": [ + "FR" + ], + "value": 110.16 + } + ], + "ruleType": "FixedPriceLock", + "termUnits": "ASI1251A" + }, + "discountCombinationRule": "BestOf", + "discountPercentage": 14, + "discountType": "CustomPriceMultiCurrency", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryWithCustomPriceMultiCurrency" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithPriceGuarantee.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithPriceGuarantee.json new file mode 100644 index 000000000000..483529793ac9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsCreatePrimaryWithPriceGuarantee.json @@ -0,0 +1,140 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountType": "Sku", + "priceGuaranteeProperties": { + "priceGuaranteeDate": "2024-11-01T00:00:00", + "pricingPolicy": "Protected" + }, + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountType": "Sku", + "priceGuaranteeProperties": { + "priceGuaranteeDate": "2024-11-01T00:00:00", + "pricingPolicy": "Protected" + }, + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series Discount", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountCombinationRule": "BestOf", + "discountType": "Sku", + "priceGuaranteeProperties": { + "priceGuaranteeDate": "2024-11-01T00:00:00", + "pricingPolicy": "Protected" + }, + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Discounts_Create", + "title": "DiscountsCreatePrimaryWithPriceGuarantee" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsDelete.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsDelete.json new file mode 100644 index 000000000000..48d2262b3073 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "discountName": "testdiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2025-05-01-preview", + "Retry-After": 5 + } + }, + "204": {} + }, + "operationId": "Discounts_Delete", + "title": "ReservationOrderAliasCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsUpdate.json new file mode 100644 index 000000000000..5d1b3dfc2125 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/DiscountsUpdate.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Virtual Machines D Series" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "discountName": "testprimarydiscount", + "resourceGroupName": "testrg", + "subscriptionId": "30000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "testprimarydiscount", + "type": "Microsoft.BillingBenefits/discounts", + "id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount", + "location": "global", + "properties": { + "appliedScopeType": "BillingAccount", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000", + "discountTypeProperties": { + "applyDiscountOn": "Purchase", + "conditions": [ + { + "type": "equalAny", + "conditionName": "Cloud", + "value": [ + "US-Sec" + ] + } + ], + "discountPercentage": 14, + "discountType": "Sku", + "productFamilyName": "Azure", + "productId": "DZH318Z0BQ35", + "skuId": "0001" + }, + "displayName": "Virtual Machines D Series", + "endAt": "2024-07-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-Asyncoperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": "5" + } + } + }, + "operationId": "Discount_Update", + "title": "DiscountGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/EndCustomerInvestmentFundCreditCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/EndCustomerInvestmentFundCreditCreate.json new file mode 100644 index 000000000000..175595f86311 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/EndCustomerInvestmentFundCreditCreate.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "breakdown": [ + { + "allocation": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "dimensions": [ + { + "key": "productFamily", + "value": "Azure" + }, + { + "key": "productCode", + "value": "00002b30-0000-0260-d348-f3ffcd565473" + }, + { + "key": "creditType", + "value": "EndCustomerInvestmentCredit" + }, + { + "key": "supplierType", + "value": "External" + } + ], + "endAt": "2025-08-31T23:59:59.999Z", + "startAt": "2025-08-01T00:00:00Z" + } + ], + "credit": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2025-08-31T23:59:59.999Z", + "productCode": "00002b30-0000-0260-d348-f3ffcd565473", + "startAt": "2025-08-01T00:00:00Z" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "breakdown": [ + { + "allocation": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "dimensions": [ + { + "key": "productFamily", + "value": "Azure" + }, + { + "key": "productCode", + "value": "00002b30-0000-0260-d348-f3ffcd565473" + }, + { + "key": "creditType", + "value": "EndCustomerInvestmentCredit" + }, + { + "key": "supplierType", + "value": "External" + } + ], + "endAt": "2025-08-31T23:59:59.999Z", + "startAt": "2025-08-01T00:00:00Z" + } + ], + "credit": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2025-08-31T23:59:59.999Z", + "productCode": "00002b30-0000-0260-d348-f3ffcd565473", + "startAt": "2025-08-01T00:00:00Z", + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "breakdown": [ + { + "allocation": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "dimensions": [ + { + "key": "productFamily", + "value": "Azure" + }, + { + "key": "productCode", + "value": "00002b30-0000-0260-d348-f3ffcd565473" + }, + { + "key": "creditType", + "value": "EndCustomerInvestmentCredit" + }, + { + "key": "supplierType", + "value": "External" + } + ], + "endAt": "2025-08-31T23:59:59.999Z", + "startAt": "2025-08-01T00:00:00Z" + } + ], + "credit": { + "amount": 25000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2025-08-31T23:59:59.999Z", + "productCode": "00002b30-0000-0260-d348-f3ffcd565473", + "startAt": "2025-08-01T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Create", + "title": "EndCustomerInvestmentFundCreditCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneCommitmentUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneCommitmentUpdate.json new file mode 100644 index 000000000000..23ef26171419 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneCommitmentUpdate.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "milestones": [ + { + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccAndMilestoneCommitment_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneEndDateUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneEndDateUpdate.json new file mode 100644 index 000000000000..00357e386901 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneEndDateUpdate.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "endAt": "2029-05-01T23:59:59Z", + "milestones": [ + { + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "endAt": "2028-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2029-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2028-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccAndMilestoneEndDate_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneMultiPropertyUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneMultiPropertyUpdate.json new file mode 100644 index 000000000000..6684f58a3e72 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccAndMilestoneMultiPropertyUpdate.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "allowContributors": false, + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated with milestones", + "endAt": "2029-10-31T23:59:59Z", + "milestones": [ + { + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "endAt": "2027-06-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 35000, + "currencyCode": "USD" + }, + "endAt": "2028-06-30T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": false, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated with milestones", + "endAt": "2029-10-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 25000, + "currencyCode": "USD" + }, + "endAt": "2027-06-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 35000, + "currencyCode": "USD" + }, + "endAt": "2028-06-30T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccAndMilestoneMultiProperty_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccCancel.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccCancel.json new file mode 100644 index 000000000000..ec555f6c392d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccCancel.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "startAt": "2023-07-01T00:00:00Z", + "status": "Canceled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Cancel", + "title": "Macc_Cancel" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccChargeShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccChargeShortfall.json new file mode 100644 index 000000000000..e37a7af891e9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccChargeShortfall.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/{rgName}/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 3, + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "shortfall87654321" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_ChargeShortfall", + "title": "Maccs_ChargeShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccContributorRuleUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccContributorRuleUpdate.json new file mode 100644 index 000000000000..ea28bb78e5c0 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccContributorRuleUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "allowContributors": false + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": false, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccEndContributorRule_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccCreate.json new file mode 100644 index 000000000000..c5248836625f --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccCreate.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "allowContributors": true, + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2023-07-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Create", + "title": "Macc_Create" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccDelete.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccDelete.json new file mode 100644 index 000000000000..aed17df6ca0d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + }, + "204": {} + }, + "operationId": "Maccs_Delete", + "title": "ServiceSpecificIncentives_Delete" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccDisplayNameUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccDisplayNameUpdate.json new file mode 100644 index 000000000000..5cf52f822825 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccDisplayNameUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "displayName": "Updated MACC Display Name" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Updated MACC Display Name", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccDisplayName_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccGet.json new file mode 100644 index 000000000000..0289a0a5fcb5 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccGet.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "Macc_Get" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMilestoneSuppressAutomaticShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMilestoneSuppressAutomaticShortfall.json new file mode 100644 index 000000000000..8193b2834c41 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMilestoneSuppressAutomaticShortfall.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall charging" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall charging" + }, + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccMilestoneSuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMilestoneUnsuppressAutomaticShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMilestoneUnsuppressAutomaticShortfall.json new file mode 100644 index 000000000000..2a01bc3d5cf9 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMilestoneUnsuppressAutomaticShortfall.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null, + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null, + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "PendingSettlement" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-07-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccMilestoneUnsuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMultiPropertyUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMultiPropertyUpdate.json new file mode 100644 index 000000000000..fdbdb00bd8fb --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccMultiPropertyUpdate.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "allowContributors": false, + "commitment": { + "amount": 45000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated", + "endAt": "2024-10-01T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": false, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 45000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614 updated", + "endAt": "2024-10-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccMultiProperty_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccNoMilestonesCommitmentUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccNoMilestonesCommitmentUpdate.json new file mode 100644 index 000000000000..dc6603d532ea --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccNoMilestonesCommitmentUpdate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + } + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccCommitment_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccNoMilestonesEndDateUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccNoMilestonesEndDateUpdate.json new file mode 100644 index 000000000000..7bb8db32ffde --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccNoMilestonesEndDateUpdate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "endAt": "2023-07-10T00:00:00Z" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccEndDate_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributors.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributors.json new file mode 100644 index 000000000000..d3c962c2f7db --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributors.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "contributors": true, + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2024-06-30T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 4, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "shortfall56789012" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + }, + { + "properties": { + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Contributor 1", + "endAt": "2024-06-30T00:00:00Z", + "entityType": "Contributor", + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/{leadMaccName}/contributor/{maccContributorName}", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewContributors" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributorsWithMilestones.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributorsWithMilestones.json new file mode 100644 index 000000000000..403e63c890db --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributorsWithMilestones.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "contributors": true, + "milestones": true, + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + }, + { + "properties": { + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc Contributor 1", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/{leadMaccName}/contributor/{maccContributorName}", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewContributorsWithMilestones" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributorsWithMilestonesAndShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributorsWithMilestonesAndShortfall.json new file mode 100644 index 000000000000..9f94e4772aa3 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewContributorsWithMilestonesAndShortfall.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "contributors": true, + "milestones": true, + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 5, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall76543210" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + }, + { + "properties": { + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc Contributor 1", + "endAt": "2028-05-31T23:59:59Z", + "entityType": "Contributor", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "primaryBillingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "primaryResourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/{leadMaccName}/contributor/{maccContributorName}", + "shortfall": { + "balanceVersion": 6, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall65432109" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewContributorsWithMilestonesAndShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewNoContributors.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewNoContributors.json new file mode 100644 index 000000000000..d0bbc54ebedb --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewNoContributors.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}" + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2024-06-30T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/{rgName}/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "shortfall": { + "balanceVersion": 5, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "charge": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-01T00:00:00Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2023-07-01T00:00:00Z", + "systemId": "shortfall67890123" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewNoContributors" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewWithMilestonesNoContributors.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewWithMilestonesNoContributors.json new file mode 100644 index 000000000000..7227c3ad7965 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSellerViewWithMilestonesNoContributors.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "$filter": "properties/status ne 'Canceled'", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "milestones": true + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-06-12T22:05:09Z", + "createdByType": "User", + "lastModifiedAt": "2023-06-12T22:05:09Z", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "SellerResource_List", + "title": "SellerViewWithMilestonesNoContributors" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSuppressAutomaticShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSuppressAutomaticShortfall.json new file mode 100644 index 000000000000..c44566ab75dd --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccSuppressAutomaticShortfall.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall charging" + } + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequestedSuppression", + "message": "Customer explicitly requested to disable automatic shortfall." + }, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccSuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccTagsUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccTagsUpdate.json new file mode 100644 index 000000000000..35ac04e787a0 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccTagsUpdate.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": {}, + "tags": { + "key1": "value4", + "key2": "value5" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 40000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-10T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value4", + "key2": "value5" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccTags_Update" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccUnsuppressAutomaticShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccUnsuppressAutomaticShortfall.json new file mode 100644 index 000000000000..f4d80a35838d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccUnsuppressAutomaticShortfall.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "automaticShortfallSuppressReason": null, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "PendingSettlement", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MaccUnsuppressAutomaticShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCancel.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCancel.json new file mode 100644 index 000000000000..ad0072b53b2a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCancel.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "status": "Canceled", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCancel" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCancelWithMilestones.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCancelWithMilestones.json new file mode 100644 index 000000000000..974b706edb7c --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCancelWithMilestones.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "status": "Canceled", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCancelWithMilestones" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreate.json new file mode 100644 index 000000000000..f82c1c144167 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateBackfilledMacc.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateBackfilledMacc.json new file mode 100644 index 000000000000..140d9f381b4c --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateBackfilledMacc.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateBackfilledMacc" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateContributor.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateContributor.json new file mode 100644 index 000000000000..f5464cfc0899 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateContributor.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateContributor" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateMilestonesOnExistingMacc.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateMilestonesOnExistingMacc.json new file mode 100644 index 000000000000..64e24c965deb --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateMilestonesOnExistingMacc.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 7000, + "currencyCode": "USD" + }, + "endAt": "2024-10-31T23:59:59Z" + }, + { + "commitment": { + "amount": 13000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateMilestonesOnExistingMacc" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateMultiEntity.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateMultiEntity.json new file mode 100644 index 000000000000..f80c88fa5920 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateMultiEntity.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + }, + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Contributor", + "primaryResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + }, + { + "reason": "Error message", + "reasonCode": "ErrorCode", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": false + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateMultiEntity" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateNewMaccWithMilestone.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateNewMaccWithMilestone.json new file mode 100644 index 000000000000..5fd5d7da94b1 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateCreateNewMaccWithMilestone.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2026-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 5000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-07-31T23:59:59Z" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "startAt": "2023-07-01T00:00:00Z", + "systemId": null + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateCreateNewMaccWithMilestone" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdate.json new file mode 100644 index 000000000000..3cc38c8c9211 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdate.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "Test MACC Benefit", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-07-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-07-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateCommitment.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateCommitment.json new file mode 100644 index 000000000000..d1ad1244ba9b --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateCommitment.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateCommitment" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateCommitmentEndAtContributorRule.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateCommitmentEndAtContributorRule.json new file mode 100644 index 000000000000..67b9950d40b6 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateCommitmentEndAtContributorRule.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateCommitmentEndAtContributorRule" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateContributor.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateContributor.json new file mode 100644 index 000000000000..49e8d0a5d911 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateContributor.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Test MACC Benefit", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Contributor", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateContributor" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateContributorRule.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateContributorRule.json new file mode 100644 index 000000000000..5e1656020fa8 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateContributorRule.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateContributorRule" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateDisplayName.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateDisplayName.json new file mode 100644 index 000000000000..71b1ad510ae6 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateDisplayName.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "displayName": "Updated Macc Name", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateDisplayName" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateEndAt.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateEndAt.json new file mode 100644 index 000000000000..63449d1c2d73 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateEndAt.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "allowContributors": true, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateEndAt" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMaccAndMilestoneCommitment.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMaccAndMilestoneCommitment.json new file mode 100644 index 000000000000..5e44218e8053 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMaccAndMilestoneCommitment.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 40000, + "currencyCode": "USD" + }, + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMaccAndMilestoneCommitment" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMaccAndMilestoneEndDate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMaccAndMilestoneEndDate.json new file mode 100644 index 000000000000..a78b87744106 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMaccAndMilestoneEndDate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "endAt": "2027-11-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "endAt": "2029-02-28T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMaccAndMilestoneEndDate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMilestoneCommitment.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMilestoneCommitment.json new file mode 100644 index 000000000000..28fcd001f1fd --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMilestoneCommitment.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 50000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 20000, + "currencyCode": "USD" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "commitment": { + "amount": 40000, + "currencyCode": "USD" + }, + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMilestoneCommitment" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMilestoneEndDate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMilestoneEndDate.json new file mode 100644 index 000000000000..2be8de7b0c8a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateMilestoneEndDate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "endAt": "2030-07-31T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "endAt": "2027-11-30T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111" + }, + { + "endAt": "2029-02-28T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222" + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateMilestoneEndDate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateRemoveMilestones.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateRemoveMilestones.json new file mode 100644 index 000000000000..9b66ca5442a4 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateRemoveMilestones.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "milestones": [ + { + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Removed" + }, + { + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Removed" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateRemoveMilestones" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateSuppressShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateSuppressShortfall.json new file mode 100644 index 000000000000..1ad139957150 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateSuppressShortfall.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequest", + "message": "Customer requested to suppress automatic shortfall" + }, + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateSuppressShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateSuppressShortfallOnMilestone.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateSuppressShortfallOnMilestone.json new file mode 100644 index 000000000000..f7d96b1be9f0 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateSuppressShortfallOnMilestone.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "automaticShortfallSuppressReason": { + "code": "CustomerRequest", + "message": "Customer requested to suppress automatic shortfall" + }, + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateSuppressShortfallOnMilestone" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateUnsuppressShortfall.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateUnsuppressShortfall.json new file mode 100644 index 000000000000..fb12b3a53698 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateUnsuppressShortfall.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/benefits/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateUnsuppressShortfall" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateUnsuppressShortfallOnMilestone.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateUnsuppressShortfallOnMilestone.json new file mode 100644 index 000000000000..4fdfc488ef27 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateUpdateUnsuppressShortfallOnMilestone.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "milestoneId": "11111111-1111-1111-1111-111111111111" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateUpdateUnsuppressShortfallOnMilestone" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateWriteOffWithMilestones.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateWriteOffWithMilestones.json new file mode 100644 index 000000000000..0f744bfdaa20 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccValidateWriteOffWithMilestones.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "MACC", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "entityType": "Primary", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "status": "PendingSettlement", + "systemId": "13810867107109237" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.BillingBenefits/maccs/myBenefit", + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "MaccValidateWriteOffWithMilestones" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesAndShortfallGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesAndShortfallGet.json new file mode 100644 index 000000000000..9079c908c34d --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesAndShortfallGet.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": { + "balanceVersion": 1, + "charge": { + "amount": 2000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2027-07-01T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2026-07-01T00:00:00Z", + "systemId": "lotId" + }, + "status": "ShortfallCharged" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Completed" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": { + "balanceVersion": 3, + "charge": { + "amount": 5000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2029-07-31T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2028-07-01T00:00:00Z", + "systemId": "shortfall98765432" + }, + "startAt": "2025-05-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "MaccWithMilestonesAndShortfall_Get" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesCancel.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesCancel.json new file mode 100644 index 000000000000..ae5e2bb0a794 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesCancel.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-10-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Canceled" + }, + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Canceled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Canceled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Cancel", + "title": "MaccWithMilestones_Cancel" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesCreate.json new file mode 100644 index 000000000000..371bff451f10 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesCreate.json @@ -0,0 +1,170 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "allowContributors": true, + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "startAt": "2025-05-01T00:00:00Z", + "systemId": "13810867107109237" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Scheduled" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Scheduled", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Active" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Pending", + "startAt": "2025-05-01T00:00:00Z", + "status": "Pending", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Create", + "title": "MaccWithMilestones_Create" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesGet.json new file mode 100644 index 000000000000..c1891303a2f7 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesGet.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "MaccWithMilestones_Get" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesWriteOff.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesWriteOff.json new file mode 100644 index 000000000000..c15bcac89fab --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithMilestonesWriteOff.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2026-07-01T00:00:00Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2024-10-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Completed" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2025-01-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "PendingSettlement" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": null, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallWaived", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_WriteOff", + "title": "MaccWithMilestones_WriteOff" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithShortfallGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithShortfallGet.json new file mode 100644 index 000000000000..27d01e732058 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWithShortfallGet.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc_20230614", + "endAt": "2024-07-31T23:59:59Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Canceled", + "shortfall": { + "balanceVersion": 2, + "charge": { + "amount": 10000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "endAt": "2025-09-30T23:59:59Z", + "productCode": "000278da-0000-0160-330f-a0b98cdbbdc4", + "resourceId": "/subscriptions/27507203-b094-420a-a716-b6fda046e1c2/resourceGroups/testcredit/providers/Microsoft.BillingBenefits/credits/taco0647052025", + "startAt": "2024-09-01T00:00:00Z", + "systemId": "shortfall12345678" + }, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallCharged", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + } + }, + "operationId": "Maccs_Get", + "title": "MaccWithShortfall_Get" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWriteOff.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWriteOff.json new file mode 100644 index 000000000000..38035b2a7668 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccWriteOff.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Disabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "shortfall": null, + "startAt": "2023-07-01T00:00:00Z", + "status": "ShortfallWaived", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_WriteOff", + "title": "Macc_WriteOff" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsListByResourceGroup.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsListByResourceGroup.json new file mode 100644 index 000000000000..e8293fe5afed --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsListByResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListByResourceGroup", + "title": "Maccs_ListByResourceGroup" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsListBySubscription.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsListBySubscription.json new file mode 100644 index 000000000000..a54b8fb7b1e2 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsListBySubscription.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2024-07-01T00:00:00Z", + "entityType": "Primary", + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2023-07-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListBySubscription", + "title": "Maccs_ListBySubscription" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsWithMilestonesListByResourceGroup.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsWithMilestonesListByResourceGroup.json new file mode 100644 index 000000000000..6c56c45bb7cc --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsWithMilestonesListByResourceGroup.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListByResourceGroup", + "title": "MaccsWithMilestones_ListByResourceGroup" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsWithMilestonesListBySubscription.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsWithMilestonesListBySubscription.json new file mode 100644 index 000000000000..2a7e3a756ff0 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MaccsWithMilestonesListBySubscription.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "shortfall": null, + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "shortfall": null, + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + ] + } + } + }, + "operationId": "Maccs_ListBySubscription", + "title": "MaccsWithMilestones_ListBySubscription" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MilestonesCreateOnExistingMacc.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MilestonesCreateOnExistingMacc.json new file mode 100644 index 000000000000..043428752bbf --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MilestonesCreateOnExistingMacc.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z" + }, + { + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [ + { + "automaticShortfall": "Enabled", + "commitment": { + "amount": 10000, + "currencyCode": "USD" + }, + "endAt": "2026-05-31T23:59:59Z", + "milestoneId": "11111111-1111-1111-1111-111111111111", + "status": "Active" + }, + { + "automaticShortfall": "Disabled", + "commitment": { + "amount": 15000, + "currencyCode": "USD" + }, + "endAt": "2027-05-31T23:59:59Z", + "milestoneId": "22222222-2222-2222-2222-222222222222", + "status": "Scheduled" + } + ], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MilestonesCreate_OnExistingMacc" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MilestonesRemoveFromMacc.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MilestonesRemoveFromMacc.json new file mode 100644 index 000000000000..478d37482e6a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/MilestonesRemoveFromMacc.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "milestones": [ + { + "milestoneId": "12000000-0000-0000-0000-000000000000", + "status": "Removed" + }, + { + "milestoneId": "13000000-0000-0000-0000-000000000001", + "status": "Removed" + } + ] + } + }, + "maccName": "macc_20230614", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "10000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "macc_20230614", + "type": "Microsoft.BillingBenefits/maccs", + "id": "/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/maccs/macc_20230614", + "location": "global", + "properties": { + "allowContributors": true, + "automaticShortfall": "Enabled", + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "commitment": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "displayName": "macc 20230614", + "endAt": "2028-05-01T23:59:59Z", + "entityType": "Primary", + "milestones": [], + "productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4", + "provisioningState": "Succeeded", + "startAt": "2025-05-01T00:00:00Z", + "status": "Active", + "systemId": "13810867107109237" + }, + "systemData": { + "createdAt": "2023-02-01T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-02-01T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Location": "https://management.azure.com/subscriptions/{primaryCloudSubId}/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2023-11-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Maccs_Update", + "title": "MilestonesRemove_FromMacc" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/OperationsGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/OperationsGet.json new file mode 100644 index 000000000000..b3c64121e622 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/OperationsGet.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.BillingBenefits/savingsPlanOrderAliases/read", + "display": { + "description": "Read all savings plan order aliases", + "operation": "Get Savings plan order alias", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrderAliases" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrderAliases/write", + "display": { + "description": "Create a Savings plan order alias", + "operation": "Create SavingsPlanOrderAliases", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrderAliases" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/read", + "display": { + "description": "Read all savings plan orders", + "operation": "Get Savings plan orders", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrders" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/write", + "display": { + "description": "Patch a Savings plan order", + "operation": "Patch SavingsPlanOrders", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrders" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/action", + "display": { + "description": "Update a Savings plan order", + "operation": "Update SavingsPlanOrders", + "provider": "Microsoft Benefits", + "resource": "SavingsPlanOrders" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans/read", + "display": { + "description": "Read All SavingsPlans", + "operation": "Get SavingsPlans", + "provider": "Microsoft Benefits", + "resource": "SavingsPlans" + } + }, + { + "name": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans/write", + "display": { + "description": "Patch an existing Savings plan", + "operation": "Patch SavingsPlans", + "provider": "Microsoft Benefits", + "resource": "SavingsPlans" + } + }, + { + "name": "Microsoft.BillingBenefits/register/action", + "display": { + "description": "Registers the Benefits resource provider and enables the creation of Benefits resources.", + "operation": "Registers the Benefits Resource Provider.", + "provider": "Microsoft Benefits", + "resource": "SavingsPlans" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "OperationsGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/PromotionalCreditCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/PromotionalCreditCreate.json new file mode 100644 index 000000000000..b90276682785 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/PromotionalCreditCreate.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "global", + "properties": { + "policies": { + "expiration": "SuspendBillingProfile", + "redemption": "AutoRedeem" + }, + "productCode": "0002d726-0000-0160-330f-a0b98cdbbdc4" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "creditName": "credit_20231212", + "resourceGroupName": "resource_group_name_01", + "subscriptionId": "97ee05f2-07d5-494d-908c-081a197f4277" + }, + "responses": { + "200": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2024-01-12T00:00:00Z", + "policies": { + "expiration": "SuspendBillingProfile", + "redemption": "AutoRedeem" + }, + "productCode": "18eb6fdd-37c1-479b-b9be-550dbc461842", + "startAt": "2023-12-12T00:00:00Z", + "status": "Succeeded" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + } + }, + "201": { + "body": { + "name": "credit_20231212", + "type": "Microsoft.BillingBenefits/credits", + "id": "/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/credits/credit_20231212", + "location": "global", + "properties": { + "billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}", + "billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/billingProfiles/{billingProfileId}", + "credit": { + "amount": 20000, + "currencyCode": "USD", + "grain": "FullTerm" + }, + "customerId": "/providers/Microsoft.Billing/billingAccounts/{acctId:orgId}/customers/{customerId}", + "endAt": "2024-01-12T00:00:00Z", + "policies": { + "expiration": "SuspendBillingProfile", + "redemption": "AutoRedeem" + }, + "productCode": "18eb6fdd-37c1-479b-b9be-550dbc461842", + "startAt": "2023-12-12T00:00:00Z", + "status": "Pending" + }, + "systemData": { + "createdAt": "2023-12-12T01:01:01.1075056Z", + "createdByType": "User", + "lastModifiedAt": "2023-12-12T01:01:01.1075056Z", + "lastModifiedByType": "User" + }, + "tags": { + "key1": "value1", + "key2": "value2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Location": "https://management.azure.com/subscriptions/97ee05f2-07d5-494d-908c-081a197f4277/resourceGroups/resource_group_name_01/providers/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-03-01-preview", + "Retry-After": 5 + } + } + }, + "operationId": "Credits_Create", + "title": "PromotionalCreditCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ReservationOrderAliasCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ReservationOrderAliasCreate.json new file mode 100644 index 000000000000..2d9c83407955 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ReservationOrderAliasCreate.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "location": "eastus", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "quantity": 5, + "renew": true, + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + }, + "reservationOrderAliasName": "reservationOrderAlias123" + }, + "responses": { + "200": { + "body": { + "name": "reservationOrderAlias123", + "type": "Microsoft.BillingBenefits/reservationOrderAliases", + "id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "provisioningState": "Created", + "quantity": 5, + "renew": true, + "reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000", + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + } + }, + "201": { + "body": { + "name": "reservationOrderAlias123", + "type": "Microsoft.BillingBenefits/reservationOrderAliases", + "id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123", + "location": "eastus", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "provisioningState": "Created", + "quantity": 5, + "renew": true, + "reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000", + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-06-02-privatepreview", + "Retry-After": 5 + } + } + }, + "operationId": "ReservationOrderAlias_Create", + "title": "ReservationOrderAliasCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ReservationOrderAliasGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ReservationOrderAliasGet.json new file mode 100644 index 000000000000..821b702e59aa --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/ReservationOrderAliasGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "reservationOrderAliasName": "reservationOrderAlias123" + }, + "responses": { + "200": { + "body": { + "name": "reservationOrderAlias123", + "type": "Microsoft.BillingBenefits/reservationOrderAliases", + "id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123", + "location": "eastus", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "ReservationOrder_2022-06-02", + "provisioningState": "Created", + "quantity": 5, + "renew": true, + "reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000", + "reservedResourceProperties": { + "instanceFlexibility": "On" + }, + "reservedResourceType": "VirtualMachines", + "term": "P1Y" + }, + "sku": { + "name": "Standard_M64s_v2" + } + } + } + }, + "operationId": "ReservationOrderAlias_Get", + "title": "ReservationOrderAliasGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanItemExpandedGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanItemExpandedGet.json new file mode 100644 index 000000000000..3cf3e4aa7468 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanItemExpandedGet.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "$expand": "renewProperties", + "api-version": "2025-05-01-preview", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeType": "Shared", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_patch_rename2", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-21T18:15:42.4098626Z", + "expiryDateTime": "2025-10-18T21:16:13.1854959Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-18T21:14:26.8279361Z", + "renew": true, + "renewProperties": { + "purchaseProperties": { + "properties": { + "appliedScopeType": "Shared", + "billingPlan": "Upfront", + "billingScopeId": "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_patch_rename2_renewed", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "term": "P3Y", + "userFriendlyAppliedScopeType": "Shared", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 84, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 83.87, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlan_Get", + "title": "SavingsPlanItemWithExpandedRenewPropertiesGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanItemGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanItemGet.json new file mode 100644 index 000000000000..01e1e93fe4d8 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanItemGet.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeType": "Shared", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_patch_rename2", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-21T18:15:42.4098626Z", + "expiryDateTime": "2025-10-18T21:16:13.1854959Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-18T21:14:26.8279361Z", + "renew": true, + "term": "P3Y", + "userFriendlyAppliedScopeType": "Shared", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 84, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 83.87, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlan_Get", + "title": "SavingsPlanItemGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasCreate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasCreate.json new file mode 100644 index 000000000000..6bdb678c8f9f --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasCreate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "appliedScopeProperties": null, + "appliedScopeType": "Shared", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "savingsPlanOrderAliasName": "spAlias123" + }, + "responses": { + "200": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": null, + "appliedScopeType": "Shared", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "201": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": null, + "appliedScopeType": "Shared", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01-privatepreview", + "Retry-After": 5 + } + } + }, + "operationId": "SavingsPlanOrderAlias_Create", + "title": "SavingsPlanOrderAliasCreate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasCreateSingleScope.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasCreateSingleScope.json new file mode 100644 index 000000000000..6646c80d116a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasCreateSingleScope.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "savingsPlanOrderAliasName": "spAlias123" + }, + "responses": { + "200": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "201": { + "body": { + "name": "SavingsPlan_1667000324595", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/SavingsPlan_1667000324595", + "kind": null, + "properties": { + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/30000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000023", + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01-privatepreview", + "Retry-After": 5 + } + } + }, + "operationId": "SavingsPlanOrderAlias_Create", + "title": "SavingsPlanOrderAliasCreateSingleScope" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasGet.json new file mode 100644 index 000000000000..02e687641535 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderAliasGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderAliasName": "spAlias123" + }, + "responses": { + "200": { + "body": { + "name": "spAlias123", + "type": "Microsoft.BillingBenefits/savingsPlanOrderAliases", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrderAliases/spAlias123", + "kind": null, + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 15.23, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "ComputeSavingsPlan_2021-07-01", + "provisioningState": "Created", + "savingsPlanOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/30000000-0000-0000-0000-000000000000", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlanOrderAlias_Get", + "title": "SavingsPlanOrderAliasGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderElevate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderElevate.json new file mode 100644 index 000000000000..02cbd2c88476 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderElevate.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "70000000-0000-0000-0000-000000000005", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009/providers/Microsoft.Authorization/roleAssignments/70000000-0000-0000-0000-000000000005", + "properties": { + "principalId": "50000000-0000-0000-0000-000000000000", + "roleDefinitionId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009/providers/Microsoft.Authorization/roleDefinitions/30000000-0000-0000-0000-000000000008", + "scope": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000009" + } + } + } + }, + "operationId": "SavingsPlanOrder_Elevate", + "title": "SavingsPlanOrderElevate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderExpandedGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderExpandedGet.json new file mode 100644 index 000000000000..c3c3867c2203 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderExpandedGet.json @@ -0,0 +1,337 @@ +{ + "parameters": { + "$expand": "schedule", + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "properties": { + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/1234567/billingSubscriptions/30000000-0000-0000-0000-000000000003", + "displayName": "Compute_SavingsPlan_10-19-2022_11-01", + "expiryDateTime": "2025-10-19T18:03:55.2519794Z", + "planInformation": { + "nextPaymentDueDate": "2022-11-19", + "pricingCurrencyTotal": { + "amount": 26.28, + "currencyCode": "USD" + }, + "startDate": "2022-10-19", + "transactions": [ + { + "billingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "dueDate": "2022-10-19", + "paymentDate": "2022-10-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Completed" + }, + { + "dueDate": "2022-11-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2022-12-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-01-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-02-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-03-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-04-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-05-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-06-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-07-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-08-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-09-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-10-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-11-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-12-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-01-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-02-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-03-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-04-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-05-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-06-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-07-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-08-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-09-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-10-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-11-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-12-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-01-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-02-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-03-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-04-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-05-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-06-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-07-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-08-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-09-19", + "pricingCurrencyTotal": { + "amount": 0.73, + "currencyCode": "USD" + }, + "status": "Scheduled" + } + ] + }, + "provisioningState": "Succeeded", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlanOrder_Get", + "title": "SavingsPlanOrderWithExpandedPaymentsGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderGet.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderGet.json new file mode 100644 index 000000000000..e0dfc1f67ed4 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "properties": { + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "20000000-0000-0000-0000-000000000005", + "displayName": "Compute_SavingsPlan_10-19-2022_11-01", + "expiryDateTime": "2025-10-19T18:03:55.2519794Z", + "provisioningState": "Succeeded", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + }, + "operationId": "SavingsPlanOrder_Get", + "title": "SavingsPlanOrderGet" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderList.json new file mode 100644 index 000000000000..b1477c472b99 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanOrderList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "20000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "properties": { + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000004:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000004:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "20000000-0000-0000-0000-000000000005", + "displayName": "Compute_SavingsPlan_10-28-2022_16-38", + "expiryDateTime": "2025-10-28T23:40:30.6028303Z", + "provisioningState": "Succeeded", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/20000000-0000-0000-0000-000000000001" + ], + "term": "P3Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + }, + "operationId": "SavingsPlanOrder_List", + "title": "SavingsPlanOrderList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanUpdate.json new file mode 100644 index 000000000000..b3212ebedc12 --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanUpdate.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "displayName": "TestDisplayName", + "renew": true, + "renewProperties": { + "purchaseProperties": { + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingPlan": "P1M", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 15.23, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "TestDisplayName_renewed", + "renew": false, + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + } + }, + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billingbenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeProperties": { + "displayName": "Azure subscription 1", + "subscriptionId": "/subscriptions/10000000-0000-0000-0000-000000000000" + }, + "appliedScopeType": "Single", + "benefitStartTime": "2022-10-27T00:34:33.6697600Z", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingPlan": "P1M", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "riName", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-11-10T00:12:54.549373Z", + "expiryDateTime": "2025-10-27T00:34:33.6697600Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-27T00:32:45.5823486Z", + "renew": true, + "term": "P3Y", + "userFriendlyAppliedScopeType": "Single", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 37, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 53.85, + "valueUnit": "percentage" + } + ], + "trend": "DOWN" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + }, + "202": { + "description": "The request is completed.", + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2020-07-01" + } + }, + "404": {} + }, + "operationId": "SavingsPlan_Update", + "title": "SavingsPlanUpdate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanValidatePurchase.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanValidatePurchase.json new file mode 100644 index 000000000000..8fdd9d00462a --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanValidatePurchase.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "benefitType": "SavingsPlan", + "name": "ComputeSavingsPlan1", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg" + }, + "appliedScopeType": "Single", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 15.23, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "ComputeSavingsPlan_2021-07-01", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + { + "benefitType": "SavingsPlan", + "name": "ComputeSavingsPlan2", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/RG" + }, + "appliedScopeType": "Single", + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "commitment": { + "amount": 20, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "ComputeSavingsPlan_2021-07-01", + "term": "P1Y" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "reason": "Your provider has not enabled Savings Plan purchase on this subscription.", + "reasonCode": "CustomerCannotPurchaseSavingsPlan", + "valid": false + }, + { + "valid": true + } + ] + } + } + }, + "operationId": "Benefit_Validate", + "title": "SavingsPlanValidatePurchase" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanValidateUpdate.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanValidateUpdate.json new file mode 100644 index 000000000000..ece12f9fd7da --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlanValidateUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "body": { + "benefits": [ + { + "appliedScopeProperties": { + "managementGroupId": "/providers/Microsoft.Management/managementGroups/30000000-0000-0000-0000-000000000100", + "tenantId": "30000000-0000-0000-0000-000000000100" + }, + "appliedScopeType": "ManagementGroup" + }, + { + "appliedScopeProperties": { + "managementGroupId": "/providers/Microsoft.Management/managementGroups/MockMG", + "tenantId": "30000000-0000-0000-0000-000000000100" + }, + "appliedScopeType": "ManagementGroup" + } + ] + }, + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "valid": true + }, + { + "valid": true + } + ] + } + } + }, + "operationId": "SavingsPlan_ValidateUpdate", + "title": "SavingsPlanValidateUpdate" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlansInOrderList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlansInOrderList.json new file mode 100644 index 000000000000..816ab54881ef --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlansInOrderList.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2025-05-01-preview", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47/resourcegroups/3ppRG" + }, + "appliedScopeType": "Single", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.002, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-24-2022_15-44", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-24T22:47:04.8539493Z", + "expiryDateTime": "2023-10-24T22:47:04.6196635Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-24T22:45:13.6202486Z", + "renew": false, + "term": "P1Y", + "userFriendlyAppliedScopeType": "ResourceGroup", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + }, + "operationId": "SavingsPlan_List", + "title": "SavingsPlansInOrderList" +} diff --git a/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlansList.json b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlansList.json new file mode 100644 index 000000000000..b19cb5a853da --- /dev/null +++ b/specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/preview/2025-05-01-preview/examples/SavingsPlansList.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "$filter": "(properties%2farchived+eq+false)", + "$orderby": "properties/displayName asc", + "$skiptoken": "50", + "api-version": "2025-05-01-preview", + "refreshsummary": "true", + "take": "1" + }, + "responses": { + "200": { + "body": { + "additionalProperties": [ + { + "name": "summary", + "value": { + "cancelledCount": 0, + "expiredCount": 0, + "expiringCount": 0, + "failedCount": 0, + "noBenefitCount": 0, + "pendingCount": 0, + "processingCount": 0, + "succeededCount": 1, + "warningCount": 0 + } + } + ], + "value": [ + { + "name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000", + "type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans", + "id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "properties": { + "appliedScopeProperties": { + "displayName": "Azure subscription 1", + "subscriptionId": "/subscriptions/20000000-0000-0000-0000-000000000005" + }, + "appliedScopeType": "Single", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB", + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009", + "commitment": { + "amount": 0.001, + "currencyCode": "USD", + "grain": "Hourly" + }, + "displayName": "Compute_SavingsPlan_10-19-2022_11-03", + "displayProvisioningState": "Succeeded", + "effectiveDateTime": "2022-10-19T18:05:37.1034288Z", + "expiryDateTime": "2023-10-19T18:05:36.5252231Z", + "provisioningState": "Succeeded", + "purchaseDateTime": "2022-10-19T18:03:56.4032132Z", + "renew": false, + "term": "P1Y", + "userFriendlyAppliedScopeType": "Single", + "utilization": { + "aggregates": [ + { + "grain": 1, + "grainUnit": "days", + "value": 100, + "valueUnit": "percentage" + }, + { + "grain": 7, + "grainUnit": "days", + "value": 78, + "valueUnit": "percentage" + }, + { + "grain": 30, + "grainUnit": "days", + "value": 78.12, + "valueUnit": "percentage" + } + ], + "trend": "" + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + }, + "operationId": "SavingsPlan_ListAll", + "title": "SavingsPlansList" +} diff --git a/specification/billingbenefits/resource-manager/readme.md b/specification/billingbenefits/resource-manager/readme.md index 365e41e69457..1d460ef52a87 100644 --- a/specification/billingbenefits/resource-manager/readme.md +++ b/specification/billingbenefits/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the billingbenefits. ```yaml openapi-type: arm openapi-subtype: providerHub -tag: package-preview-2024-11-01-preview +tag: package-preview-2025-05-01-preview ``` ### Suppression @@ -104,6 +104,15 @@ directive: where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}"].patch.parameters[4] ``` +### Tag: package-preview-2025-05-01-preview + +These settings apply only when `--tag=package-preview-2025-05-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-preview-2025-05-01-preview' +input-file: + - Microsoft.BillingBenefits/preview/2025-05-01-preview/billingbenefits.json +``` + ### Tag: package-preview-2024-11-01-preview These settings apply only when `--tag=package-preview-2024-11-01-preview` is specified on the command line.