azure-resource-manager-schemas/schemas/2018-11-01-preview/Microsoft.Billing.json

495 строки
13 KiB
JSON

{
"id": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#",
"title": "Microsoft.Billing",
"description": "Microsoft Billing Resource Types",
"$schema": "http://json-schema.org/draft-04/schema#",
"subscription_resourceDefinitions": {
"billingAccounts_lineOfCredit": {
"description": "Microsoft.Billing/billingAccounts/lineOfCredit",
"properties": {
"apiVersion": {
"enum": [
"2018-11-01-preview"
],
"type": "string"
},
"name": {
"oneOf": [
{
"pattern": "^.*/default$",
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"properties": {
"description": "A line of credit.",
"oneOf": [
{
"$ref": "#/definitions/LineOfCreditProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Billing/billingAccounts/lineOfCredit"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"tenant_resourceDefinitions": {
"billingAccounts_billingProfiles": {
"description": "Microsoft.Billing/billingAccounts/billingProfiles",
"properties": {
"apiVersion": {
"enum": [
"2018-11-01-preview"
],
"type": "string"
},
"name": {
"description": "Billing Profile Id.",
"type": "string"
},
"properties": {
"description": "A billing profile.",
"oneOf": [
{
"$ref": "#/definitions/BillingProfileProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"resources": {
"items": {
"oneOf": [
{
"$ref": "#/definitions/billingAccounts_billingProfiles_policies_childResource"
}
]
},
"type": "array"
},
"type": {
"enum": [
"Microsoft.Billing/billingAccounts/billingProfiles"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"billingAccounts_billingProfiles_policies": {
"description": "Microsoft.Billing/billingAccounts/billingProfiles/policies",
"properties": {
"apiVersion": {
"enum": [
"2018-11-01-preview"
],
"type": "string"
},
"name": {
"oneOf": [
{
"pattern": "^.*/default$",
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"properties": {
"description": "The properties of policy.",
"oneOf": [
{
"$ref": "#/definitions/PolicyProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Billing/billingAccounts/billingProfiles/policies"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
},
"billingAccounts_invoiceSections": {
"description": "Microsoft.Billing/billingAccounts/invoiceSections",
"properties": {
"apiVersion": {
"enum": [
"2018-11-01-preview"
],
"type": "string"
},
"name": {
"description": "InvoiceSection Id.",
"type": "string"
},
"properties": {
"description": "The InvoiceSection.",
"oneOf": [
{
"$ref": "#/definitions/InvoiceSectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"Microsoft.Billing/billingAccounts/invoiceSections"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
},
"definitions": {
"Address": {
"description": "Address details.",
"properties": {
"addressLine1": {
"description": "Address Line1.",
"type": "string"
},
"addressLine2": {
"description": "Address Line2.",
"type": "string"
},
"addressLine3": {
"description": "Address Line3.",
"type": "string"
},
"city": {
"description": "Address City.",
"type": "string"
},
"companyName": {
"description": "Company Name.",
"type": "string"
},
"country": {
"description": "Country code uses ISO2, 2-digit format.",
"type": "string"
},
"firstName": {
"description": "First Name.",
"type": "string"
},
"lastName": {
"description": "Last Name.",
"type": "string"
},
"postalCode": {
"description": "Address Postal Code.",
"type": "string"
},
"region": {
"description": "Address Region.",
"type": "string"
}
},
"type": "object"
},
"Amount": {
"description": "The Amount.",
"properties": {
"value": {
"description": "Amount value.",
"oneOf": [
{
"type": "number"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"BillingProfile": {
"description": "A billing profile resource.",
"properties": {
"properties": {
"description": "A billing profile.",
"oneOf": [
{
"$ref": "#/definitions/BillingProfileProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"BillingProfileProperties": {
"description": "The properties of the billing profile.",
"properties": {
"address": {
"description": "Billing address.",
"oneOf": [
{
"$ref": "#/definitions/Address"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"displayName": {
"description": "The billing profile name.",
"type": "string"
},
"enabledAzureSKUs": {
"description": "Information about the product.",
"oneOf": [
{
"items": {
"$ref": "#/definitions/EnabledAzureSKUs"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"invoiceSections": {
"description": "The invoice sections associated to the billing profile.",
"oneOf": [
{
"items": {
"$ref": "#/definitions/InvoiceSection"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"poNumber": {
"description": "Purchase order number.",
"type": "string"
}
},
"type": "object"
},
"EnabledAzureSKUs": {
"description": "Details about the enabled azure sku.",
"properties": {
"skuId": {
"description": "The sku id.",
"type": "string"
}
},
"type": "object"
},
"InvoiceSection": {
"description": "An InvoiceSection resource.",
"properties": {
"properties": {
"description": "The InvoiceSection.",
"oneOf": [
{
"$ref": "#/definitions/InvoiceSectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"InvoiceSectionProperties": {
"description": "The properties of an InvoiceSection.",
"properties": {
"billingProfiles": {
"description": "The billing profiles associated to the billing account.",
"oneOf": [
{
"items": {
"$ref": "#/definitions/BillingProfile"
},
"type": "array"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"displayName": {
"description": "The name of the InvoiceSection.",
"type": "string"
}
},
"type": "object"
},
"LineOfCreditProperties": {
"description": "The properties of the line of credit.",
"properties": {
"creditLimit": {
"description": "The current credit limit.",
"oneOf": [
{
"$ref": "#/definitions/Amount"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"status": {
"description": "The line of credit status.",
"oneOf": [
{
"enum": [
"Approved",
"Rejected"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"PolicyProperties": {
"description": "The properties of policy.",
"properties": {
"marketplacePurchasesAllowed": {
"description": "The marketplacePurchasesAllowed flag.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"reservationPurchasesAllowed": {
"description": "The reservationPurchasesAllowed flag.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"subscriptionOwnerCanViewCharges": {
"description": "The subscriptionOwnerCanViewCharges flag.",
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"type": "object"
},
"billingAccounts_billingProfiles_policies_childResource": {
"description": "Microsoft.Billing/billingAccounts/billingProfiles/policies",
"properties": {
"apiVersion": {
"enum": [
"2018-11-01-preview"
],
"type": "string"
},
"name": {
"oneOf": [
{
"enum": [
"default"
],
"type": "string"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"properties": {
"description": "The properties of policy.",
"oneOf": [
{
"$ref": "#/definitions/PolicyProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"enum": [
"policies"
],
"type": "string"
}
},
"required": [
"name",
"properties",
"apiVersion",
"type"
],
"type": "object"
}
}
}