forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 14997 in Azure/azure-rest-api-specs
Merge 567b0ee9ff92540a6895f03fda03f4f43f63702a into 33b8d6f7bf2eb081fe134333b0fc445777e488d6
- Loading branch information
SDKAuto
committed
Jul 9, 2021
1 parent
2924917
commit 9ae9ec0
Showing
4 changed files
with
107 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Billing.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Billing", | ||
"description": "Microsoft Billing Resource Types", | ||
"resourceDefinitions": {}, | ||
"tenant_resourceDefinitions": { | ||
"promotions": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2020-09-01-preview" | ||
] | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Promotion Id" | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PromotionCreateRequestProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PromotionCreateSkuNameRequestProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Billing/promotions" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Billing/promotions" | ||
} | ||
}, | ||
"definitions": { | ||
"PromotionCreateRequestProperties": { | ||
"type": "object", | ||
"properties": { | ||
"appliedScopes": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "List of the subscriptions that the benefit will be applied." | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"description": "Friendly name for user to easily identified the promotion." | ||
}, | ||
"orderId": { | ||
"type": "string", | ||
"description": "Unique Id for the promotion order." | ||
} | ||
} | ||
}, | ||
"PromotionCreateSkuNameRequestProperties": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "SKU Name of the promotion to activate" | ||
} | ||
} | ||
} | ||
} | ||
} |