Skip to content

Commit

Permalink
Release BillingBenefits microsoft.billingbenefits preview/2024-11-01-…
Browse files Browse the repository at this point in the history
…preview (#32829)

* Copy files from stable/2022-11-01

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to preview/2024-11-01-preview

Updated the API version from stable/2022-11-01 to preview/2024-11-01-preview.

* Added tag for 2024-11-01-preview in readme file

* Adding 2024-11-01-preview API version

Revert .npmrc

Running prettier

revert .npmrc

Fixing tag defintion in readme

revert spacing in readme.go.md

fixing indentation error
  • Loading branch information
ryanmaley310 authored Feb 26, 2025
1 parent b9300c9 commit 3e74e85
Show file tree
Hide file tree
Showing 35 changed files with 5,743 additions and 24 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"parameters": {
"scope": "providers/Microsoft.Billing/billingAccounts/{acctId}",
"api-version": "2024-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/13810867107109237",
"name": "13810867107109237",
"type": "Microsoft.BillingBenefits/applicableDiscounts",
"properties": {
"benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"displayName": "Virtual Machines D Series",
"entityType": "Primary",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"systemId": "13810867107109237",
"provisioningState": "Succeeded",
"status": "Active",
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
"appliedScopeType": "BillingAccount",
"discountTypeProperties": {
"discountType": "Sku",
"applyDiscountOn": "Purchase",
"productFamilyName": "Azure",
"productId": "DZH318Z0BQ35",
"skuId": "0001",
"discountPercentage": 14,
"conditions": [
{
"type": "equalAny",
"conditionName": "Cloud",
"value": [
"US-Sec"
]
}
]
}
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/providers/Microsoft.BillingBenefits/applicableDiscounts/63810867107109237",
"name": "63810867107109237",
"type": "Microsoft.BillingBenefits/applicableDiscounts",
"properties": {
"benefitResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"displayName": "Virtual Machines D Series",
"entityType": "Affiliate",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
"systemId": "63810867107109237",
"provisioningState": "Succeeded",
"status": "Active",
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31"
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"subscriptionId": "30000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"discountName": "testdiscount"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"name": "testprimarydiscount",
"type": "Microsoft.BillingBenefits/discounts",
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Primary",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"systemId": "13810867107109237",
"provisioningState": "Succeeded",
"status": "Canceled",
"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",
"appliedScopeType": "account",
"discountTypeProperties": {
"discountType": "Sku",
"applyDiscountOn": "Purchase",
"productFamilyName": "Azure",
"productId": "DZH318Z0BQ35",
"skuId": "0001",
"discountPercentage": 14,
"conditions": [
{
"type": "equalAny",
"conditionName": "Cloud",
"value": [
"US-Sec"
]
}
]
}
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-11-01-preview",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/30000000-0000-0000-0000-000000000000/providers/Microsoft.BillingBenefits/operationStatuses/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2024-11-01-preview",
"Retry-After": 5
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"subscriptionId": "30000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"discountName": "testprimarydiscount",
"api-version": "2024-11-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"name": "testprimarydiscount",
"type": "Microsoft.BillingBenefits/discounts",
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Primary",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"systemId": "13810867107109237",
"provisioningState": "Succeeded",
"status": "Active",
"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",
"appliedScopeType": "BillingAccount",
"discountTypeProperties": {
"discountType": "Sku",
"applyDiscountOn": "Purchase",
"productFamilyName": "Azure",
"productId": "DZH318Z0BQ35",
"skuId": "0001",
"discountPercentage": 14,
"conditions": [
{
"type": "equalAny",
"conditionName": "Cloud",
"value": [
"US-Sec"
]
}
]
}
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"parameters": {
"subscriptionId": "30000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"discountName": "testprimarydiscount",
"api-version": "2024-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"name": "testprimarydiscount",
"type": "Microsoft.BillingBenefits/discounts",
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Primary",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"systemId": "13810867107109237",
"provisioningState": "Succeeded",
"status": "Active",
"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",
"appliedScopeType": "BillingAccount",
"discountTypeProperties": {
"discountType": "Sku",
"applyDiscountOn": "Purchase",
"productFamilyName": "Azure",
"productId": "DZH318Z0BQ35",
"skuId": "0001",
"discountPercentage": 14,
"conditions": [
{
"type": "equalAny",
"conditionName": "Cloud",
"value": [
"US-Sec"
]
}
]
}
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
},
{
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"name": "testprimarydiscount",
"type": "Microsoft.BillingBenefits/discounts",
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Affiliate",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
"systemId": "13810867107109237",
"provisioningState": "Succeeded",
"status": "Active",
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000"
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"parameters": {
"subscriptionId": "30000000-0000-0000-0000-000000000000",
"resourceGroupName": "testrg",
"discountName": "testaffiliatediscount",
"api-version": "2024-11-01-preview",
"body": {
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Affiliate",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"systemId": "13810867107109237"
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"name": "testprimarydiscount",
"type": "Microsoft.BillingBenefits/discounts",
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Affiliate",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
"systemId": "13810867107109237",
"provisioningState": "Pending",
"status": "Pending",
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000"
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
},
"200": {
"body": {
"id": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testprimarydiscount",
"name": "testprimarydiscount",
"type": "Microsoft.BillingBenefits/discounts",
"properties": {
"displayName": "Virtual Machines D Series",
"entityType": "Affiliate",
"productCode": "0001d726-0000-0160-330f-a0b98cdbbdc4",
"startAt": "2023-07-01T00:00:00Z",
"endAt": "2024-07-01T23:59:59Z",
"primaryResourceId": "/subscriptions/30000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.BillingBenefits/discounts/testaffiliatediscount",
"systemId": "13810867107109237",
"provisioningState": "Succeeded",
"status": "Active",
"billingProfileResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
"billingAccountResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
"customerResourceId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/customers/40000000-0000-0000-0000-000000000000"
},
"location": "global",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
}
}
}
Loading

0 comments on commit 3e74e85

Please sign in to comment.