Skip to content

Commit

Permalink
Merge 23670b2 into 46b3863
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlwanl authored Sep 20, 2024
2 parents 46b3863 + 23670b2 commit be204c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,125 +10,7 @@
},
"version": "2024-04-01"
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default": {
"get": {
"tags": [
"BillingProperty"
],
"description": "Gets the billing properties for a subscription",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"operationId": "BillingProperty_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "./types.json#/parameters/subscriptionId"
},
{
"in": "query",
"name": "includeBillingCountry",
"description": "A flag that specifies whether or not to include billing country.",
"type": "boolean",
"default": false
},
{
"in": "query",
"name": "includeTransitionStatus",
"description": "A flag that specifies whether or not to include transition status for billing accounts with agreement type Microsoft Customer Agreement.",
"type": "boolean",
"default": false
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "A billing property.",
"schema": {
"$ref": "#/definitions/BillingProperty"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"BillingPropertyGetMCA": {
"$ref": "./examples/billingPropertyGetMCA.json"
},
"BillingPropertyGetMOSP": {
"$ref": "./examples/billingPropertyGetMOSP.json"
},
"BillingPropertyGetMPA": {
"$ref": "./examples/billingPropertyGetMPA.json"
}
}
},
"patch": {
"tags": [
"BillingProperty"
],
"description": "Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"operationId": "BillingProperty_Update",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "./types.json#/parameters/subscriptionId"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"in": "body",
"name": "parameters",
"description": "A billing property.",
"required": true,
"schema": {
"$ref": "#/definitions/BillingProperty"
}
}
],
"responses": {
"200": {
"description": "A billing property.",
"schema": {
"$ref": "#/definitions/BillingProperty"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"BillingPropertyPatchCostCenter": {
"$ref": "./examples/billingPropertyPatchCostCenter.json"
},
"BillingPropertyPatchSubscriptionServiceUsageAddress": {
"$ref": "./examples/billingPropertyPatchSubscriptionServiceUsageAddress.json"
}
}
}
}
},
"paths": {},
"definitions": {
"BillingProperty": {
"description": "A billing property.",
Expand Down
7 changes: 0 additions & 7 deletions specification/billing/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_billing']
- repo: azure-cli-extensions
- repo: azure-resource-manager-schemas
- repo: azure-powershell
```

## C#
Expand Down
11 changes: 11 additions & 0 deletions specification/billing/resource-manager/sdk-suppressions.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
suppressions:
azure-sdk-for-python:
- package: "azure-mgmt-billing"
breaking-changes:
- Deleted or renamed client operation group `BillingManagementClient.billing_property`
- Deleted or renamed model `BillingPropertyOperations`
azure-sdk-for-go:
- package: sdk/resourcemanager/billing/armbilling
breaking-changes:
- Function `*ClientFactory.NewPropertyClient` has been removed
- Function `*PropertyClient.Get` has been removed
- Function `*PropertyClient.Update` has been removed
- Function `NewPropertyClient` has been removed
- Function `*AccountsClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, AccountUpdateRequest, *AccountsClientBeginUpdateOptions)` to `(context.Context, string, AccountPatch, *AccountsClientBeginUpdateOptions)`
- Function `*CustomersClient.Get` parameter(s) have been changed from `(context.Context, string, string, *CustomersClientGetOptions)` to `(context.Context, string, string, string, *CustomersClientGetOptions)`
- Function `*EnrollmentAccountsClient.Get` parameter(s) have been changed from `(context.Context, string, *EnrollmentAccountsClientGetOptions)` to `(context.Context, string, string, *EnrollmentAccountsClientGetOptions)`
Expand Down Expand Up @@ -188,6 +197,8 @@ suppressions:
azure-sdk-for-js:
- package: "@azure/arm-billing"
breaking-changes:
- Class BillingManagementClient no longer has parameter billingPropertyOperations
- Removed operation group BillingPropertyOperations
- Removed operation group BillingPeriods
- Removed operation group BillingRoleDefinitions
- Removed operation group Instructions
Expand Down

0 comments on commit be204c6

Please sign in to comment.