From 714fe7a568abcb7a436fa3ad5a682037656ce4df Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 12 Apr 2021 09:13:26 +0000 Subject: [PATCH] CodeGen from PR 13885 in Azure/azure-rest-api-specs Merge e0c6e63a3e6a018649a73c820b0b7651a1f2c88f into c4fc9427b7f79d8ccdf04c460f68560a99dfb1bf --- .../2018-11-01-preview/Microsoft.Billing.json | 489 ------------- .../2019-08-01/tenantDeploymentTemplate.json | 48 -- .../2019-10-01-preview/Microsoft.Billing.json | 680 ------------------ schemas/2020-05-01/Microsoft.Billing.json | 660 ----------------- 4 files changed, 1877 deletions(-) delete mode 100644 schemas/2018-11-01-preview/Microsoft.Billing.json delete mode 100644 schemas/2019-10-01-preview/Microsoft.Billing.json delete mode 100644 schemas/2020-05-01/Microsoft.Billing.json diff --git a/schemas/2018-11-01-preview/Microsoft.Billing.json b/schemas/2018-11-01-preview/Microsoft.Billing.json deleted file mode 100644 index 881033b50a..0000000000 --- a/schemas/2018-11-01-preview/Microsoft.Billing.json +++ /dev/null @@ -1,489 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Billing", - "description": "Microsoft Billing Resource Types", - "resourceDefinitions": {}, - "subscription_resourceDefinitions": { - "billingAccounts_lineOfCredit": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-11-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/LineOfCreditProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the line of credit." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/lineOfCredit" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/lineOfCredit" - } - }, - "tenant_resourceDefinitions": { - "billingAccounts_billingProfiles": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-11-01-preview" - ] - }, - "name": { - "type": "string", - "description": "Billing Profile Id." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/BillingProfileProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the billing profile." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/billingAccounts_billingProfiles_policies_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles" - }, - "billingAccounts_billingProfiles_policies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-11-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/policies" - }, - "billingAccounts_invoiceSections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-11-01-preview" - ] - }, - "name": { - "type": "string", - "description": "InvoiceSection Id." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InvoiceSectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an InvoiceSection." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/invoiceSections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/invoiceSections" - } - }, - "definitions": { - "Address": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "Address Line1." - }, - "addressLine2": { - "type": "string", - "description": "Address Line1." - }, - "addressLine3": { - "type": "string", - "description": "Address Line1." - }, - "city": { - "type": "string", - "description": "Address City." - }, - "companyName": { - "type": "string", - "description": "Company Name." - }, - "country": { - "type": "string", - "description": "Country code uses ISO2, 2-digit format." - }, - "firstName": { - "type": "string", - "description": "First Name." - }, - "lastName": { - "type": "string", - "description": "Last Name." - }, - "postalCode": { - "type": "string", - "description": "Address Postal Code." - }, - "region": { - "type": "string", - "description": "Address Region." - } - }, - "description": "Address details." - }, - "Amount": { - "type": "object", - "properties": { - "value": { - "oneOf": [ - { - "type": "number" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Amount value." - } - }, - "description": "The Amount." - }, - "billingAccounts_billingProfiles_policies_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2018-11-01-preview" - ] - }, - "name": { - "type": "string", - "enum": [ - "default" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of policy." - }, - "type": { - "type": "string", - "enum": [ - "policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/policies" - }, - "BillingProfile": { - "type": "object", - "properties": { - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/BillingProfileProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the billing profile." - } - }, - "description": "A billing profile resource." - }, - "BillingProfileProperties": { - "type": "object", - "properties": { - "address": { - "oneOf": [ - { - "$ref": "#/definitions/Address" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Address details." - }, - "displayName": { - "type": "string", - "description": "The billing profile name." - }, - "enabledAzureSKUs": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/EnabledAzureSKUs" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Information about the product." - }, - "invoiceSections": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/InvoiceSection" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The invoice sections associated to the billing profile." - }, - "poNumber": { - "type": "string", - "description": "Purchase order number." - } - }, - "description": "The properties of the billing profile." - }, - "EnabledAzureSKUs": { - "type": "object", - "properties": { - "skuId": { - "type": "string", - "description": "The sku id." - } - }, - "description": "Details about the enabled azure sku." - }, - "InvoiceSection": { - "type": "object", - "properties": { - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InvoiceSectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an InvoiceSection." - } - }, - "description": "An InvoiceSection resource." - }, - "InvoiceSectionProperties": { - "type": "object", - "properties": { - "billingProfiles": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/BillingProfile" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The billing profiles associated to the billing account." - }, - "displayName": { - "type": "string", - "description": "The name of the InvoiceSection." - } - }, - "description": "The properties of an InvoiceSection." - }, - "LineOfCreditProperties": { - "type": "object", - "properties": { - "creditLimit": { - "oneOf": [ - { - "$ref": "#/definitions/Amount" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Amount." - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Approved", - "Rejected" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The line of credit status." - } - }, - "description": "The properties of the line of credit." - }, - "PolicyProperties": { - "type": "object", - "properties": { - "marketplacePurchasesAllowed": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The marketplacePurchasesAllowed flag." - }, - "reservationPurchasesAllowed": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The reservationPurchasesAllowed flag." - }, - "subscriptionOwnerCanViewCharges": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The subscriptionOwnerCanViewCharges flag." - } - }, - "description": "The properties of policy." - } - } -} \ No newline at end of file diff --git a/schemas/2019-08-01/tenantDeploymentTemplate.json b/schemas/2019-08-01/tenantDeploymentTemplate.json index 7cb34f7628..467e562de9 100644 --- a/schemas/2019-08-01/tenantDeploymentTemplate.json +++ b/schemas/2019-08-01/tenantDeploymentTemplate.json @@ -113,54 +113,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2019-09-01/Microsoft.Authorization.json#/resourceDefinitions/policySetDefinitions" }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_policies" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_invoiceSections" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_instructions" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_invoiceSections" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_policies" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingRoleAssignments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_customers_policies" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_departments_billingRoleAssignments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_enrollmentAccounts_billingRoleAssignments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_instructions" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_invoiceSections" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_billingProfiles_policies" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#/tenant_resourceDefinitions/billingAccounts_customers_policies" - }, { "$ref": "https://schema.management.azure.com/schemas/2019-04-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders" }, diff --git a/schemas/2019-10-01-preview/Microsoft.Billing.json b/schemas/2019-10-01-preview/Microsoft.Billing.json deleted file mode 100644 index fe6a040dcb..0000000000 --- a/schemas/2019-10-01-preview/Microsoft.Billing.json +++ /dev/null @@ -1,680 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-10-01-preview/Microsoft.Billing.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Billing", - "description": "Microsoft Billing Resource Types", - "resourceDefinitions": {}, - "tenant_resourceDefinitions": { - "billingAccounts_billingProfiles": { - "type": "object", - "properties": { - "address": { - "oneOf": [ - { - "$ref": "#/definitions/AddressDetails" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Address details." - }, - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "displayName": { - "type": "string", - "description": "The name of the billing profile." - }, - "enabledAzurePlans": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/AzurePlan" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enabled azure plans for the billing profile." - }, - "invoiceEmailOptIn": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Flag controlling whether the invoices for the billing profile are sent through email." - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies a billing profile." - }, - "poNumber": { - "type": "string", - "description": "The purchase order name that will appear on the invoices generated for the billing profile." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/billingAccounts_billingProfiles_instructions_childResource" - }, - { - "$ref": "#/definitions/billingAccounts_billingProfiles_invoiceSections_childResource" - }, - { - "$ref": "#/definitions/billingAccounts_billingProfiles_policies_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles" - }, - "billingAccounts_billingProfiles_instructions": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "type": "string", - "description": "Instruction Name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InstructionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A billing instruction used during invoice generation." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/instructions" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/instructions" - }, - "billingAccounts_billingProfiles_invoiceSections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "displayName": { - "type": "string", - "description": "The name of the invoice section." - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies an invoice section." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections" - }, - "billingAccounts_billingProfiles_policies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/policies" - }, - "billingAccounts_billingRoleAssignments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies a role assignment." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/BillingRoleAssignmentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the role assignment." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingRoleAssignments" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingRoleAssignments" - }, - "billingAccounts_customers_policies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/CustomerPolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a customer's policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/customers/policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/customers/policies" - }, - "billingAccounts_departments_billingRoleAssignments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies a role assignment." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/BillingRoleAssignmentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the role assignment." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/departments/billingRoleAssignments" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/departments/billingRoleAssignments" - }, - "billingAccounts_enrollmentAccounts_billingRoleAssignments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies a role assignment." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/BillingRoleAssignmentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the role assignment." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/enrollmentAccounts/billingRoleAssignments" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/enrollmentAccounts/billingRoleAssignments" - } - }, - "definitions": { - "AddressDetails": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "Address line 1." - }, - "addressLine2": { - "type": "string", - "description": "Address line 1." - }, - "addressLine3": { - "type": "string", - "description": "Address line 1." - }, - "city": { - "type": "string", - "description": "Address city." - }, - "companyName": { - "type": "string", - "description": "Company name." - }, - "country": { - "type": "string", - "description": "Country code uses ISO2, 2-digit format." - }, - "firstName": { - "type": "string", - "description": "First name." - }, - "lastName": { - "type": "string", - "description": "Last name." - }, - "postalCode": { - "type": "string", - "description": "Postal code." - }, - "region": { - "type": "string", - "description": "Address region." - } - }, - "description": "Address details." - }, - "AzurePlan": { - "type": "object", - "properties": { - "skuId": { - "type": "string", - "description": "The sku id." - } - }, - "description": "Details of the Azure plan." - }, - "billingAccounts_billingProfiles_instructions_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "type": "string", - "description": "Instruction Name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InstructionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A billing instruction used during invoice generation." - }, - "type": { - "type": "string", - "enum": [ - "instructions" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/instructions" - }, - "billingAccounts_billingProfiles_invoiceSections_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "displayName": { - "type": "string", - "description": "The name of the invoice section." - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies an invoice section." - }, - "type": { - "type": "string", - "enum": [ - "invoiceSections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections" - }, - "billingAccounts_billingProfiles_policies_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-01-preview" - ] - }, - "name": { - "type": "string", - "enum": [ - "default" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a policy." - }, - "type": { - "type": "string", - "enum": [ - "policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/policies" - }, - "BillingRoleAssignmentProperties": { - "type": "object", - "properties": { - "principalId": { - "type": "string", - "description": "The principal id of the user to whom the role was assigned." - }, - "principalTenantId": { - "type": "string", - "description": "The principal tenant id of the user to whom the role was assigned." - }, - "roleDefinitionId": { - "type": "string", - "description": "The ID of the role definition." - }, - "userAuthenticationType": { - "type": "string", - "description": "The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement." - }, - "userEmailAddress": { - "type": "string", - "description": "The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement." - } - }, - "description": "The properties of the role assignment." - }, - "CustomerPolicyProperties": { - "type": "object", - "properties": { - "viewCharges": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices." - } - }, - "description": "The properties of a customer's policy." - }, - "InstructionProperties": { - "type": "object", - "properties": { - "amount": { - "oneOf": [ - { - "type": "number" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The amount budgeted for this billing instruction." - }, - "creationDate": { - "type": "string", - "format": "date-time", - "description": "The date this billing instruction was created." - }, - "endDate": { - "type": "string", - "format": "date-time", - "description": "The date this billing instruction is no longer in effect." - }, - "startDate": { - "type": "string", - "format": "date-time", - "description": "The date this billing instruction goes into effect." - } - }, - "required": [ - "amount", - "endDate", - "startDate" - ], - "description": "A billing instruction used during invoice generation." - }, - "PolicyProperties": { - "type": "object", - "properties": { - "marketplacePurchases": { - "oneOf": [ - { - "type": "string", - "enum": [ - "AllAllowed", - "OnlyFreeAllowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether Azure marketplace purchases are allowed for a billing profile." - }, - "reservationPurchases": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether Azure reservation purchases are allowed for a billing profile." - }, - "viewCharges": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether users with Azure RBAC access to a subscription can view its charges." - } - }, - "description": "The properties of a policy." - } - } -} \ No newline at end of file diff --git a/schemas/2020-05-01/Microsoft.Billing.json b/schemas/2020-05-01/Microsoft.Billing.json deleted file mode 100644 index 766e06fa20..0000000000 --- a/schemas/2020-05-01/Microsoft.Billing.json +++ /dev/null @@ -1,660 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Billing.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Billing", - "description": "Microsoft Billing Resource Types", - "resourceDefinitions": {}, - "tenant_resourceDefinitions": { - "billingAccounts_billingProfiles": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies a billing profile." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/BillingProfileProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of the billing profile." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/billingAccounts_billingProfiles_instructions_childResource" - }, - { - "$ref": "#/definitions/billingAccounts_billingProfiles_invoiceSections_childResource" - }, - { - "$ref": "#/definitions/billingAccounts_billingProfiles_policies_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles" - }, - "billingAccounts_billingProfiles_instructions": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "type": "string", - "description": "Instruction Name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InstructionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A billing instruction used during invoice generation." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/instructions" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/instructions" - }, - "billingAccounts_billingProfiles_invoiceSections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies an invoice section." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InvoiceSectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an invoice section." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections" - }, - "billingAccounts_billingProfiles_policies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/billingProfiles/policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/policies" - }, - "billingAccounts_customers_policies": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/default$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/CustomerPolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a customer's policy." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Billing/billingAccounts/customers/policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/customers/policies" - } - }, - "definitions": { - "AddressDetails": { - "type": "object", - "properties": { - "addressLine1": { - "type": "string", - "description": "Address line 1." - }, - "addressLine2": { - "type": "string", - "description": "Address line 1." - }, - "addressLine3": { - "type": "string", - "description": "Address line 1." - }, - "city": { - "type": "string", - "description": "Address city." - }, - "companyName": { - "type": "string", - "description": "Company name." - }, - "country": { - "type": "string", - "description": "Country code uses ISO2, 2-digit format." - }, - "district": { - "type": "string", - "description": "Address district." - }, - "email": { - "type": "string", - "description": "Email address." - }, - "firstName": { - "type": "string", - "description": "First name." - }, - "lastName": { - "type": "string", - "description": "Last name." - }, - "phoneNumber": { - "type": "string", - "description": "Phone number." - }, - "postalCode": { - "type": "string", - "description": "Postal code." - }, - "region": { - "type": "string", - "description": "Address region." - } - }, - "required": [ - "addressLine1", - "country" - ], - "description": "Address details." - }, - "AzurePlan": { - "type": "object", - "properties": { - "skuId": { - "type": "string", - "description": "The sku id." - } - }, - "description": "Details of the Azure plan." - }, - "billingAccounts_billingProfiles_instructions_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "type": "string", - "description": "Instruction Name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InstructionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A billing instruction used during invoice generation." - }, - "type": { - "type": "string", - "enum": [ - "instructions" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/instructions" - }, - "billingAccounts_billingProfiles_invoiceSections_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "type": "string", - "description": "The ID that uniquely identifies an invoice section." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InvoiceSectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an invoice section." - }, - "type": { - "type": "string", - "enum": [ - "invoiceSections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections" - }, - "billingAccounts_billingProfiles_policies_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-05-01" - ] - }, - "name": { - "type": "string", - "enum": [ - "default" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PolicyProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a policy." - }, - "type": { - "type": "string", - "enum": [ - "policies" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Billing/billingAccounts/billingProfiles/policies" - }, - "BillingProfileProperties": { - "type": "object", - "properties": { - "billTo": { - "oneOf": [ - { - "$ref": "#/definitions/AddressDetails" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Address details." - }, - "displayName": { - "type": "string", - "description": "The name of the billing profile." - }, - "enabledAzurePlans": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/AzurePlan" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Information about the enabled azure plans." - }, - "invoiceEmailOptIn": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Flag controlling whether the invoices for the billing profile are sent through email." - }, - "invoiceSections": { - "oneOf": [ - { - "$ref": "#/definitions/InvoiceSectionsOnExpand" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The invoice sections associated to the billing profile. By default this is not populated, unless it's specified in $expand." - }, - "poNumber": { - "type": "string", - "description": "The purchase order name that will appear on the invoices generated for the billing profile." - } - }, - "description": "The properties of the billing profile." - }, - "CustomerPolicyProperties": { - "type": "object", - "properties": { - "viewCharges": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices." - } - }, - "description": "The properties of a customer's policy." - }, - "InstructionProperties": { - "type": "object", - "properties": { - "amount": { - "oneOf": [ - { - "type": "number" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The amount budgeted for this billing instruction." - }, - "creationDate": { - "type": "string", - "format": "date-time", - "description": "The date this billing instruction was created." - }, - "endDate": { - "type": "string", - "format": "date-time", - "description": "The date this billing instruction is no longer in effect." - }, - "startDate": { - "type": "string", - "format": "date-time", - "description": "The date this billing instruction goes into effect." - } - }, - "required": [ - "amount", - "endDate", - "startDate" - ], - "description": "A billing instruction used during invoice generation." - }, - "InvoiceSection": { - "type": "object", - "properties": { - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/InvoiceSectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an invoice section." - } - }, - "description": "An invoice section." - }, - "InvoiceSectionProperties": { - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "The name of the invoice section." - }, - "labels": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Dictionary of metadata associated with the invoice section." - } - }, - "description": "The properties of an invoice section." - }, - "InvoiceSectionsOnExpand": { - "type": "object", - "properties": { - "value": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/InvoiceSection" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The invoice sections associated to the billing profile." - } - }, - "description": "The invoice sections associated to the billing profile. By default this is not populated, unless it's specified in $expand." - }, - "PolicyProperties": { - "type": "object", - "properties": { - "marketplacePurchases": { - "oneOf": [ - { - "type": "string", - "enum": [ - "AllAllowed", - "OnlyFreeAllowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether Azure marketplace purchases are allowed for a billing profile." - }, - "reservationPurchases": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether Azure reservation purchases are allowed for a billing profile." - }, - "viewCharges": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The policy that controls whether users with Azure RBAC access to a subscription can view its charges." - } - }, - "description": "The properties of a policy." - } - } -} \ No newline at end of file