From 563a6ee3d6d484ec635555d9200157a756ca9948 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Mon, 17 Jun 2019 18:04:34 -0700 Subject: [PATCH 01/31] Added spec for Recurring charges api Added spec for Recurring charges api --- .../preview/2018-11-01-preview/billing.json | 345 +++++++++++++++++- .../examples/RecurringCharge.json | 44 +++ .../RecurringChargesListByBillingAccount.json | 78 ++++ .../RecurringChargesListByBillingProfile.json | 79 ++++ .../RecurringChargesListByInvoiceSection.json | 79 ++++ 5 files changed, 624 insertions(+), 1 deletion(-) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 9d0f890cf182..43933dd68334 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -3612,6 +3612,177 @@ } } } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/recurringCharges": { + "get": { + "tags": [ + "RecurringCharges" + ], + "operationId": "RecurringCharges_ListByBillingAccountName", + "description": "Lists recurring charges by billing account name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "RecurringChargesListByBillingAccount": { + "$ref": "./examples/RecurringChargesListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RecurringChargesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/recurringCharges": { + "get": { + "tags": [ + "RecurringCharges" + ], + "operationId": "RecurringCharges_ListByBillingProfileName", + "description": "Lists recurring charges by invoice section name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "RecurringChargesListByBillingProfile": { + "$ref": "./examples/RecurringChargesListByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RecurringChargesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringCharges": { + "get": { + "tags": [ + "RecurringCharges" + ], + "operationId": "RecurringCharges_ListByInvoiceSectionName", + "description": "Lists recurring charges by invoice section name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "RecurringChargesListByInvoiceSection": { + "$ref": "./examples/RecurringChargesListByInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RecurringChargesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringCharges/{recurringChargeName}": { + "get": { + "tags": [ + "RecurringCharges" + ], + "operationId": "RecurringCharges_Get", + "description": "Get a single recurring charge by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" + }, + "x-ms-examples": { + "RecurringCharge": { + "$ref": "./examples/RecurringCharge.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/recurringChargeNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RecurringChargeSummary" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -5151,6 +5322,170 @@ } } }, + "RecurringChargesListResult": { + "description": "Result of listing recurring charges. It contains a list of available recurring charges in reverse chronological order by charge date.", + "properties": { + "value": { + "description": "The list of recurring charges.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/RecurringChargeSummary" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "RecurringChargeSummary": { + "description": "A recurring charge resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RecurringChargeSummaryProperties", + "title": "Recurring charge properties" + } + } + }, + "RecurringChargeSummaryProperties": { + "description": "The properties of the recurring charge.", + "properties": { + "availabilityId": { + "description": "Availability Id.", + "type": "string", + "readOnly": true + }, + "billingFrequency": { + "description": "Billing frequency.", + "type": "string", + "enum": [ + "OneTime", + "Monthly", + "UsageBased" + ], + "x-ms-enum": { + "name": "BillingFrequency", + "modelAsString": true + } + }, + "billingProfileId": { + "description": "Billing profile id to which this charge belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileName": { + "description": "Billing profile name to which this charge belongs.", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "The display name.", + "type": "string", + "readOnly": true + }, + "endDate": { + "description": "end date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this charge belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionName": { + "description": "Invoice section name to which this charge belongs.", + "type": "string", + "readOnly": true + }, + "lastCharge": { + "description": "Last charge.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "lastChargeDate": { + "description": "The date of the last charge.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "nextCharge": { + "description": "Next charge.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "nextChargeDate": { + "description": "The date of the next charge.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "parentProductId": { + "description": "Parent product Id.", + "type": "string", + "readOnly": true + }, + "productType": { + "description": "The type of product.", + "type": "string", + "readOnly": true + }, + "productTypeId": { + "description": "The product type id.", + "type": "string", + "readOnly": true + }, + "skuId": { + "description": "Sku Id.", + "type": "string", + "readOnly": true + }, + "skuDescription": { + "description": "Sku description.", + "type": "string", + "readOnly": true + }, + "purchaseDate": { + "description": "The date of purchase.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "quantity": { + "description": "The purchased quantity.", + "type": "number", + "readOnly": true + }, + "status": { + "description": "Latest status.", + "type": "string", + "enum": [ + "Active", + "AutoRenew", + "Cancelled", + "Deleted", + "Disabled", + "Expired", + "Expiring", + "PastDue" + ], + "x-ms-enum": { + "name": "StatusType", + "modelAsString": true + } + } + } + }, "ValidateProductTransferEligibilityResult": { "type": "object", "description": "Result of the product transfer eligibility validation.", @@ -6095,7 +6430,7 @@ "productNameParameter": { "name": "productName", "in": "path", - "description": "Invoice Id.", + "description": "Product Id.", "required": true, "type": "string", "x-ms-parameter-location": "method" @@ -6143,6 +6478,14 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" + }, + "recurringChargeNameParameter": { + "name": "recurringChargeName", + "in": "path", + "description": "Recurring charge Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" } }, "security": [ diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json new file mode 100644 index 000000000000..1f96bab47cf7 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceSectionName": "{invoiceSectionName}", + "recurringChargeName": "{recurringChargeName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/{invoiceSectionName}/recurringCharges/{recurringChargeName}", + "name": "{recurringChargeName}", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Subscription", + "displayName": "AIP Dev", + "status": "Active", + "purchaseDate": "2019-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2019-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 5000.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileName": "Contoso operations billing" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json new file mode 100644 index 000000000000..931fbeff388d --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Bing Maps API for Enterprise", + "displayName": "Bing Maps API", + "status": "Active", + "purchaseDate": "2019-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2019-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 5000.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Azure subscription", + "displayName": "Engineering Email", + "status": "Active", + "purchaseDate": "2018-04-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 2000.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 2000.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "quantity": 2, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "billingFrequency": "Monthly", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json new file mode 100644 index 000000000000..411e3b34ea57 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Reservation", + "displayName": "Eng Reservation (1a13s21awe)", + "status": "Active", + "purchaseDate": "2019-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2019-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 5000.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "billingFrequency": "OneTime", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Azure subscription", + "displayName": "Engineering Email", + "status": "Active", + "purchaseDate": "2019-04-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 500.00 + }, + "lastChargeDate": "2019-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 500.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 2, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json new file mode 100644 index 000000000000..59e250f365d8 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Reservation", + "displayName": "Eng Reservation (1a13s21awe)", + "status": "Active", + "purchaseDate": "2019-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2019-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 5000.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "billingFrequency": "OneTime", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/recurringCharges", + "properties": { + "productTypeId": "A12345", + "productType": "Azure subscription", + "displayName": "Engineering Email", + "status": "Active", + "purchaseDate": "2019-04-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 500.00 + }, + "lastChargeDate": "2019-06-15T17:32:28Z", + "nextCharge": { + "currency": "USD", + "value": 500.00 + }, + "nextChargeDate": "2019-07-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 2, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileName": "Contoso operations billing" + } + } + ] + } + } + } +} From 43140c40bee87783bcb0ac9668d4c55ee6048cad Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Tue, 18 Jun 2019 17:10:42 -0700 Subject: [PATCH 02/31] Renamed recurring charges to recurring products Renamed recurring charges to recurring products --- .../preview/2018-11-01-preview/billing.json | 84 +++++++++---------- ...rringCharge.json => RecurringProduct.json} | 8 +- ...ecurringProductsListByBillingAccount.json} | 8 +- ...ecurringProductsListByBillingProfile.json} | 8 +- ...ecurringProductsListByInvoiceSection.json} | 8 +- 5 files changed, 58 insertions(+), 58 deletions(-) rename specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/{RecurringCharge.json => RecurringProduct.json} (86%) rename specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/{RecurringChargesListByBillingAccount.json => RecurringProductsListByBillingAccount.json} (93%) rename specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/{RecurringChargesListByBillingProfile.json => RecurringProductsListByBillingProfile.json} (93%) rename specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/{RecurringChargesListByInvoiceSection.json => RecurringProductsListByInvoiceSection.json} (93%) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 43933dd68334..7ceed0876543 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -3613,19 +3613,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/recurringCharges": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/recurringProducts": { "get": { "tags": [ - "RecurringCharges" + "RecurringProducts" ], - "operationId": "RecurringCharges_ListByBillingAccountName", - "description": "Lists recurring charges by billing account name.", + "operationId": "RecurringProducts_ListByBillingAccountName", + "description": "Lists recurring products by billing account name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" }, "x-ms-examples": { - "RecurringChargesListByBillingAccount": { - "$ref": "./examples/RecurringChargesListByBillingAccount.json" + "RecurringProductsListByBillingAccount": { + "$ref": "./examples/RecurringProductsListByBillingAccount.json" } }, "parameters": [ @@ -3640,7 +3640,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/RecurringChargesListResult" + "$ref": "#/definitions/RecurringProductsListResult" } }, "default": { @@ -3655,19 +3655,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/recurringCharges": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/recurringProducts": { "get": { "tags": [ - "RecurringCharges" + "RecurringProducts" ], - "operationId": "RecurringCharges_ListByBillingProfileName", - "description": "Lists recurring charges by invoice section name.", + "operationId": "RecurringProducts_ListByBillingProfileName", + "description": "Lists recurring products by invoice section name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" }, "x-ms-examples": { - "RecurringChargesListByBillingProfile": { - "$ref": "./examples/RecurringChargesListByBillingProfile.json" + "RecurringProductsListByBillingProfile": { + "$ref": "./examples/RecurringProductsListByBillingProfile.json" } }, "parameters": [ @@ -3685,7 +3685,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/RecurringChargesListResult" + "$ref": "#/definitions/RecurringProductsListResult" } }, "default": { @@ -3697,19 +3697,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringCharges": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringProducts": { "get": { "tags": [ - "RecurringCharges" + "RecurringProducts" ], - "operationId": "RecurringCharges_ListByInvoiceSectionName", - "description": "Lists recurring charges by invoice section name.", + "operationId": "RecurringProducts_ListByInvoiceSectionName", + "description": "Lists recurring products by invoice section name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" }, "x-ms-examples": { - "RecurringChargesListByInvoiceSection": { - "$ref": "./examples/RecurringChargesListByInvoiceSection.json" + "RecurringProductsListByInvoiceSection": { + "$ref": "./examples/RecurringProductsListByInvoiceSection.json" } }, "parameters": [ @@ -3727,7 +3727,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/RecurringChargesListResult" + "$ref": "#/definitions/RecurringProductsListResult" } }, "default": { @@ -3739,19 +3739,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringCharges/{recurringChargeName}": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringProducts/{recurringProductName}": { "get": { "tags": [ - "RecurringCharges" + "RecurringProducts" ], - "operationId": "RecurringCharges_Get", - "description": "Get a single recurring charge by name.", + "operationId": "RecurringProducts_Get", + "description": "Get a single recurring product by name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" }, "x-ms-examples": { - "RecurringCharge": { - "$ref": "./examples/RecurringCharge.json" + "RecurringProduct": { + "$ref": "./examples/RecurringProduct.json" } }, "parameters": [ @@ -3762,7 +3762,7 @@ "$ref": "#/parameters/invoiceSectionNameParameter" }, { - "$ref": "#/parameters/recurringChargeNameParameter" + "$ref": "#/parameters/recurringProductNameParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -3772,7 +3772,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/RecurringChargeSummary" + "$ref": "#/definitions/RecurringProductSummary" } }, "default": { @@ -5322,15 +5322,15 @@ } } }, - "RecurringChargesListResult": { - "description": "Result of listing recurring charges. It contains a list of available recurring charges in reverse chronological order by charge date.", + "RecurringProductsListResult": { + "description": "Result of listing recurring products. It contains a list of available recurring products in reverse chronological order by charge date.", "properties": { "value": { - "description": "The list of recurring charges.", + "description": "The list of recurring products.", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/RecurringChargeSummary" + "$ref": "#/definitions/RecurringProductSummary" } }, "nextLink": { @@ -5340,8 +5340,8 @@ } } }, - "RecurringChargeSummary": { - "description": "A recurring charge resource.", + "RecurringProductSummary": { + "description": "A recurring product resource.", "type": "object", "allOf": [ { @@ -5351,13 +5351,13 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/RecurringChargeSummaryProperties", - "title": "Recurring charge properties" + "$ref": "#/definitions/RecurringProductSummaryProperties", + "title": "Recurring product properties" } } }, - "RecurringChargeSummaryProperties": { - "description": "The properties of the recurring charge.", + "RecurringProductSummaryProperties": { + "description": "The properties of the recurring product.", "properties": { "availabilityId": { "description": "Availability Id.", @@ -6479,10 +6479,10 @@ "type": "string", "x-ms-parameter-location": "method" }, - "recurringChargeNameParameter": { - "name": "recurringChargeName", + "recurringProductNameParameter": { + "name": "recurringProductName", "in": "path", - "description": "Recurring charge Id.", + "description": "Recurring product Id.", "required": true, "type": "string", "x-ms-parameter-location": "method" diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json similarity index 86% rename from specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json rename to specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json index 1f96bab47cf7..481d33ad5a4d 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringCharge.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json @@ -3,14 +3,14 @@ "api-version": "2018-11-01-preview", "billingAccountName": "{billingAccountName}", "invoiceSectionName": "{invoiceSectionName}", - "recurringChargeName": "{recurringChargeName}" + "recurringProductName": "{recurringProductName}" }, "responses": { "200": { "body": { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/{invoiceSectionName}/recurringCharges/{recurringChargeName}", - "name": "{recurringChargeName}", - "type": "Microsoft.Billing/recurringCharges", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/{invoiceSectionName}/recurringProducts/{recurringProductName}", + "name": "{recurringProductName}", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Subscription", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json similarity index 93% rename from specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json rename to specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json index 931fbeff388d..1863ab0f8ae2 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/recurringCharges", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Bing Maps API for Enterprise", @@ -40,9 +40,9 @@ } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/10000000-0000-0000-0000-000000000001", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/10000000-0000-0000-0000-000000000001", "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/recurringCharges", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Azure subscription", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json similarity index 93% rename from specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json rename to specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json index 411e3b34ea57..4911d8a0d7d3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/recurringCharges", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Reservation", @@ -41,9 +41,9 @@ } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/10000000-0000-0000-0000-000000000001", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/10000000-0000-0000-0000-000000000001", "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/recurringCharges", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Azure subscription", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json similarity index 93% rename from specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json rename to specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json index 59e250f365d8..021ba6cdb0dc 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringChargesListByInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/recurringCharges", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Reservation", @@ -41,9 +41,9 @@ } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringCharges/10000000-0000-0000-0000-000000000001", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/10000000-0000-0000-0000-000000000001", "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/recurringCharges", + "type": "Microsoft.Billing/recurringProducts", "properties": { "productTypeId": "A12345", "productType": "Azure subscription", From 03a714718b7ca2a562944b053f5b564a1ba6be07 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Tue, 18 Jun 2019 17:49:04 -0700 Subject: [PATCH 03/31] Updated the billing frequency type to string Updated the billing frequency type to string --- .../preview/2018-11-01-preview/billing.json | 12 ++---------- .../examples/RecurringProduct.json | 3 +-- .../RecurringProductsListByBillingAccount.json | 6 ++---- .../RecurringProductsListByBillingProfile.json | 6 ++---- .../RecurringProductsListByInvoiceSection.json | 6 ++---- 5 files changed, 9 insertions(+), 24 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 7ceed0876543..25625001e723 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -5365,17 +5365,9 @@ "readOnly": true }, "billingFrequency": { - "description": "Billing frequency.", + "description": "Billing frequency ISO code.", "type": "string", - "enum": [ - "OneTime", - "Monthly", - "UsageBased" - ], - "x-ms-enum": { - "name": "BillingFrequency", - "modelAsString": true - } + "readOnly": true }, "billingProfileId": { "description": "Billing profile id to which this charge belongs.", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json index 481d33ad5a4d..e771fd449beb 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json @@ -27,12 +27,11 @@ "value": 5000.00 }, "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "Monthly", + "billingFrequency": "P1M", "quantity": 4, "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "parentProductId": "45000000-0000-0000-0000-0000000001242", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json index 1863ab0f8ae2..0eda46f0343f 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json @@ -27,12 +27,11 @@ "value": 5000.00 }, "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "Monthly", + "billingFrequency": "P1M", "quantity": 4, "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "parentProductId": "45000000-0000-0000-0000-0000000001242", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", @@ -63,8 +62,7 @@ "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "billingFrequency": "Monthly", - "parentProductId": "45000000-0000-0000-0000-0000000001242", + "billingFrequency": "P1M", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json index 4911d8a0d7d3..7d0a2a43462a 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json @@ -28,12 +28,11 @@ "value": 5000.00 }, "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "OneTime", + "billingFrequency": "P1M", "quantity": 4, "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "parentProductId": "45000000-0000-0000-0000-0000000001242", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", @@ -60,12 +59,11 @@ "value": 500.00 }, "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "Monthly", + "billingFrequency": "P1M", "quantity": 2, "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "parentProductId": "45000000-0000-0000-0000-0000000001242", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json index 021ba6cdb0dc..ed64cd3ead4b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json @@ -28,12 +28,11 @@ "value": 5000.00 }, "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "OneTime", + "billingFrequency": "P1M", "quantity": 4, "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "parentProductId": "45000000-0000-0000-0000-0000000001242", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", @@ -60,12 +59,11 @@ "value": 500.00 }, "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "Monthly", + "billingFrequency": "P1M", "quantity": 2, "skuId": "0001", "skuDescription": "Enterprise Agreement Development", "availabilityId": "AvailabilityId1", - "parentProductId": "45000000-0000-0000-0000-0000000001242", "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", "invoiceSectionName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", From 967bc1303f9d53c4b90d8b99c4faae3c79adc8f8 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 17 Jul 2019 19:26:53 -0700 Subject: [PATCH 04/31] Billing RP spec changes for GTM FieldLed-Go-Big Billing RP spec changes for GTM FieldLed-Go-Big --- .../preview/2019-10-01-preview/billing.json | 6217 +++++++++++++++++ .../examples/AcceptTransfer.json | 46 + .../AddRoleAssignmentToBillingAccount.json | 83 + .../AddRoleAssignmentToBillingProfile.json | 32 + .../AddRoleAssignmentToInvoiceSection.json | 33 + .../examples/AddressInvalid.json | 43 + .../examples/AddressValid.json | 28 + .../examples/AgreementByName.json | 34 + .../AgreementsListByBillingAccountName.json | 55 + .../AvailableBalanceByBillingProfile.json | 22 + .../examples/BillingAccount.json | 21 + .../examples/BillingAccountInvoicesList.json | 95 + .../BillingAccountPermissionsList.json | 39 + .../BillingAccountRoleAssignment.json | 24 + .../BillingAccountRoleAssignmentDelete.json | 24 + .../BillingAccountRoleAssignmentList.json | 40 + .../BillingAccountRoleDefinition.json | 47 + .../BillingAccountRoleDefinitionsList.json | 162 + .../examples/BillingAccountWithExpand.json | 124 + .../examples/BillingAccountsList.json | 47 + .../BillingAccountsListWithExpand.json | 253 + ...ntsListWithExpandForEnrollmentDetails.json | 107 + .../examples/BillingProfile.json | 45 + .../BillingProfilePermissionsList.json | 40 + .../BillingProfileRoleAssignment.json | 25 + .../BillingProfileRoleAssignmentDelete.json | 25 + .../BillingProfileRoleAssignmentList.json | 80 + .../BillingProfileRoleDefinition.json | 48 + .../BillingProfileRoleDefinitionsList.json | 83 + .../examples/BillingProfileWithExpand.json | 55 + ...llingProfilesListByBillingAccountName.json | 82 + .../BillingProfilesListWithExpand.json | 102 + .../examples/BillingProperty.json | 29 + .../examples/BillingSubscription.json | 37 + ...lingSubscriptionsListByBillingAccount.json | 86 + ...lingSubscriptionsListByBillingProfile.json | 87 + ...lingSubscriptionsListByInvoiceSection.json | 88 + .../examples/CancelTransfer.json | 27 + .../examples/CreateBillingProfile.json | 70 + .../examples/CreateInvoiceSection.json | 29 + .../examples/DeclineTransfer.json | 20 + .../examples/Department.json | 21 + .../examples/DepartmentWithExpand.json | 48 + .../DepartmentsListByBillingAccountName.json | 35 + ...ntsListByBillingAccountNameWithExpand.json | 88 + .../examples/ElevateInvoiceSection.json | 11 + .../examples/EnrollmentAccount.json | 23 + .../examples/EnrollmentAccountWithExpand.json | 34 + ...lmentAccountsListByBillingAccountName.json | 51 + ...ntsListByBillingAccountNameWithExpand.json | 72 + .../examples/GetRecipientTransfer.json | 32 + .../examples/GetTransfer.json | 38 + .../IncreaseLineOfCreditBySubscription.json | 41 + .../examples/InitiateTransfer.json | 30 + .../2019-10-01-preview/examples/Invoice.json | 59 + .../examples/InvoiceSection.json | 20 + .../InvoiceSectionPermissionsList.json | 41 + .../InvoiceSectionRoleAssignment.json | 26 + .../InvoiceSectionRoleAssignmentDelete.json | 26 + .../InvoiceSectionRoleAssignmentList.json | 81 + .../InvoiceSectionRoleDefinition.json | 49 + .../InvoiceSectionRoleDefinitionsList.json | 84 + ...voiceSectionsListByBillingAccountName.json | 31 + ...ingAccountNameWithCreateSubPermission.json | 23 + .../InvoicesListByBillingProfile.json | 112 + .../examples/LineOfCreditBySubscription.json | 27 + .../examples/ListRecipientTransfers.json | 35 + .../examples/ListTransfers.json | 41 + .../PaymentMethodsListByBillingAccount.json | 41 + .../PaymentMethodsListByBillingProfile.json | 33 + .../2019-10-01-preview/examples/Policy.json | 22 + .../examples/PricesheetDownload.json | 22 + .../2019-10-01-preview/examples/Product.json | 40 + .../ProductCancelByBillingAccount.json | 19 + .../ProductCancelForInvoiceSection.json | 21 + .../ProductsListByBillingAccount.json | 68 + .../ProductsListByInvoiceSection.json | 70 + ...ationTransactionsListByBillingAccount.json | 67 + ...ationTransactionsListByBillingProfile.json | 68 + ...ationTransactionsListByInvoiceSection.json | 69 + .../examples/Transaction.json | 36 + .../TransactionsListByBillingAccount.json | 62 + .../TransactionsListByBillingProfile.json | 63 + .../TransactionsListByInvoiceSection.json | 64 + .../examples/TransferBillingSubscription.json | 28 + .../examples/TransferProduct.json | 51 + .../examples/UpdateBillingAccount.json | 41 + .../examples/UpdateBillingProfile.json | 57 + .../examples/UpdateInvoiceSection.json | 31 + .../examples/UpdatePolicy.json | 31 + .../ValidateProductTransferFailure.json | 24 + .../ValidateProductTransferSuccess.json | 20 + .../ValidateSubscriptionTransferFailure.json | 24 + .../ValidateSubscriptionTransferSuccess.json | 20 + .../billing/resource-manager/readme.md | 25 +- 95 files changed, 10929 insertions(+), 1 deletion(-) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccountName.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountName.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountNameWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountName.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountNameWithExpand.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountName.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferBillingSubscription.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json new file mode 100644 index 000000000000..221f030a4bba --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -0,0 +1,6217 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-10-01-preview", + "title": "BillingManagementClient", + "description": "Billing client provides access to billing resources for Azure subscriptions." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.Billing/billingAccounts": { + "get": { + "tags": [ + "BillingAccounts" + ], + "x-ms-examples": { + "BillingAccountsList": { + "$ref": "./examples/BillingAccountsList.json" + }, + "BillingAccountsListWithExpand": { + "$ref": "./examples/BillingAccountsListWithExpand.json" + }, + "BillingAccountsListWithExpandForEnrollmentDetails": { + "$ref": "./examples/BillingAccountsListWithExpandForEnrollmentDetails.json" + } + }, + "operationId": "BillingAccounts_List", + "description": "Lists all billing accounts for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the address, invoiceSections and billingProfiles.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingAccountListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}": { + "get": { + "tags": [ + "BillingAccounts" + ], + "x-ms-examples": { + "BillingAccounts": { + "$ref": "./examples/BillingAccount.json" + }, + "BillingAccountWithExpand": { + "$ref": "./examples/BillingAccountWithExpand.json" + } + }, + "operationId": "BillingAccounts_Get", + "description": "Get the billing account by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the address, invoiceSections and billingProfiles.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "BillingAccounts" + ], + "operationId": "BillingAccounts_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "description": "The operation to update a billing account.", + "x-ms-examples": { + "UpdateBillingAccount": { + "$ref": "./examples/UpdateBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingAccountUpdateRequest" + }, + "description": "Request parameters supplied to the update billing account operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingAccount" + } + }, + "202": { + "description": "Accepted. Billing account update is in progress." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods": { + "get": { + "tags": [ + "PaymentMethods" + ], + "operationId": "PaymentMethods_ListByBillingAccountName", + "description": "Lists the Payment Methods by billing account Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/2019-10-01-preview/paymentmethods" + }, + "x-ms-examples": { + "PaymentMethodsListByBillingAccount": { + "$ref": "./examples/PaymentMethodsListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PaymentMethodsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/validateAddress": { + "post": { + "tags": [ + "Address" + ], + "x-ms-examples": { + "AddressValid": { + "$ref": "./examples/AddressValid.json" + }, + "AddressInvalid": { + "$ref": "./examples/AddressInvalid.json" + } + }, + "operationId": "Address_Validate", + "description": "Validates the address.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "address", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Address" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateAddressResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/availableBalance/default": { + "get": { + "tags": [ + "AvailableBalances" + ], + "operationId": "AvailableBalances_GetByBillingProfile", + "description": "The latest available credit balance for a given billingAccountName and billingProfileName.", + "x-ms-examples": { + "AvailableBalanceByBillingProfile": { + "$ref": "./examples/AvailableBalanceByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AvailableBalance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods": { + "get": { + "tags": [ + "PaymentMethods" + ], + "operationId": "PaymentMethods_ListByBillingProfileName", + "description": "Lists the Payment Methods by billing profile Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "PaymentMethodsListByBillingProfile": { + "$ref": "./examples/PaymentMethodsListByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PaymentMethodsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles": { + "get": { + "tags": [ + "BillingProfiles" + ], + "x-ms-examples": { + "BillingProfilesListByBillingAccountName": { + "$ref": "./examples/BillingProfilesListByBillingAccountName.json" + }, + "BillingProfilesListWithExpand": { + "$ref": "./examples/BillingProfilesListWithExpand.json" + } + }, + "operationId": "BillingProfiles_ListByBillingAccountName", + "description": "Lists all billing profiles for a user which that user has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the invoiceSections.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingProfileListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}": { + "get": { + "tags": [ + "BillingProfiles" + ], + "x-ms-examples": { + "BillingProfile": { + "$ref": "./examples/BillingProfile.json" + }, + "BillingProfileWithExpand": { + "$ref": "./examples/BillingProfileWithExpand.json" + } + }, + "operationId": "BillingProfiles_Get", + "description": "Get the billing profile by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the invoiceSections.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "BillingProfiles" + ], + "operationId": "BillingProfiles_Create", + "x-ms-long-running-operation": true, + "description": "The operation to create a BillingProfile.", + "x-ms-examples": { + "CreateBillingProfile": { + "$ref": "./examples/CreateBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingProfileCreationRequest" + }, + "description": "Request parameters supplied to the Create BillingProfile operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingProfile" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "Location URI to poll for result", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "BillingProfiles" + ], + "operationId": "BillingProfiles_Update", + "x-ms-long-running-operation": true, + "description": "The operation to update a billing profile.", + "x-ms-examples": { + "UpdateBillingProfile": { + "$ref": "./examples/UpdateBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingProfile" + }, + "description": "Request parameters supplied to the update billing profile operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingProfile" + } + }, + "202": { + "description": "Accepted. Billing profile update is in progress.", + "headers": { + "Location": { + "description": "GET this URL to retrieve the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections": { + "get": { + "tags": [ + "InvoiceSections" + ], + "x-ms-examples": { + "InvoiceSectionsListByBillingAccountName": { + "$ref": "./examples/InvoiceSectionsListByBillingAccountName.json" + } + }, + "operationId": "InvoiceSections_ListByBillingAccountName", + "description": "Lists all invoice sections for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceSectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/listInvoiceSectionsWithCreateSubscriptionPermission": { + "get": { + "tags": [ + "InvoiceSections" + ], + "x-ms-examples": { + "InvoiceSectionsListByBillingAccountNameWithCreateSubPermission": { + "$ref": "./examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json" + } + }, + "operationId": "InvoiceSections_ListByCreateSubscriptionPermission", + "description": "Lists all invoiceSections with create subscription permission for a user.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceSectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}": { + "get": { + "tags": [ + "InvoiceSections" + ], + "x-ms-examples": { + "InvoiceSection": { + "$ref": "./examples/InvoiceSection.json" + } + }, + "operationId": "InvoiceSections_Get", + "description": "Get the InvoiceSection by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceSection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "InvoiceSections" + ], + "operationId": "InvoiceSections_Create", + "x-ms-long-running-operation": true, + "description": "The operation to create an invoice section.", + "x-ms-examples": { + "CreateInvoiceSection": { + "$ref": "./examples/CreateInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InvoiceSectionCreationRequest" + }, + "description": "Request parameters supplied to the Create InvoiceSection operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceSection" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "Location URI to poll for result", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "InvoiceSections" + ], + "operationId": "InvoiceSections_Update", + "x-ms-long-running-operation": true, + "description": "The operation to update a InvoiceSection.", + "x-ms-examples": { + "UpdateInvoiceSection": { + "$ref": "./examples/UpdateInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InvoiceSection" + }, + "description": "Request parameters supplied to the Create InvoiceSection operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceSection" + } + }, + "202": { + "description": "Accepted. InvoiceSection update is in progress.", + "headers": { + "Location": { + "description": "GET this URL to retrieve the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments": { + "get": { + "tags": [ + "Departments" + ], + "x-ms-examples": { + "DepartmentsListByBillingAccountName": { + "$ref": "./examples/DepartmentsListByBillingAccountName.json" + }, + "DepartmentsListByBillingAccountNameWithExpand": { + "$ref": "./examples/DepartmentsListByBillingAccountNameWithExpand.json" + } + }, + "operationId": "Departments_ListByBillingAccountName", + "description": "Lists all departments for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the enrollmentAccounts.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DepartmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}": { + "get": { + "tags": [ + "Departments" + ], + "x-ms-examples": { + "Department": { + "$ref": "./examples/Department.json" + }, + "DepartmentWithExpand": { + "$ref": "./examples/DepartmentWithExpand.json" + } + }, + "operationId": "Departments_Get", + "description": "Get the department by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/departmentNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the enrollmentAccounts.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Department" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts": { + "get": { + "tags": [ + "EnrollmentAccounts" + ], + "x-ms-examples": { + "EnrollmentAccountsListByBillingAccountName": { + "$ref": "./examples/EnrollmentAccountsListByBillingAccountName.json" + }, + "EnrollmentAccountsListByBillingAccountNameWithExpand": { + "$ref": "./examples/EnrollmentAccountsListByBillingAccountNameWithExpand.json" + } + }, + "operationId": "EnrollmentAccounts_ListByBillingAccountName", + "description": "Lists all Enrollment Accounts for a user which he has access to.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the department.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnrollmentAccountListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}": { + "get": { + "tags": [ + "EnrollmentAccounts" + ], + "x-ms-examples": { + "EnrollmentAccount": { + "$ref": "./examples/EnrollmentAccount.json" + }, + "EnrollmentAccountWithExpand": { + "$ref": "./examples/EnrollmentAccountWithExpand.json" + } + }, + "operationId": "EnrollmentAccounts_GetByEnrollmentAccountId", + "description": "Get the enrollment account by id.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the Department.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$filter", + "description": "The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/EnrollmentAccount" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices": { + "get": { + "tags": [ + "Invoices" + ], + "x-ms-examples": { + "BillingAccountInvoicesList": { + "$ref": "./examples/BillingAccountInvoicesList.json" + } + }, + "operationId": "Invoices_ListByBillingAccountName", + "description": "List of invoices for a billing account.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "periodStartDate", + "description": "Invoice period start date.", + "in": "query", + "required": true, + "type": "string" + }, + { + "name": "periodEndDate", + "description": "Invoice period end date.", + "in": "query", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/pricesheet/default/download": { + "post": { + "tags": [ + "PriceSheet" + ], + "x-ms-examples": { + "PricesheetDownload": { + "$ref": "./examples/PricesheetDownload.json" + } + }, + "operationId": "PriceSheet_Download", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "description": "Download price sheet for an invoice.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "billingAccountName", + "in": "path", + "description": "Azure Billing Account ID.", + "required": true, + "type": "string" + }, + { + "name": "invoiceName", + "description": "The name of an invoice resource.", + "in": "path", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "Accepted.", + "headers": { + "Location": { + "description": "GET this URL to retrieve the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "type": "string" + }, + "OData-EntityId": { + "description": "The operation entity Id GUID.", + "type": "string" + } + } + }, + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DownloadUrl" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices": { + "get": { + "tags": [ + "Invoices" + ], + "x-ms-examples": { + "InvoicesListByBillingProfile": { + "$ref": "./examples/InvoicesListByBillingProfile.json" + } + }, + "operationId": "Invoices_ListByBillingProfile", + "description": "List of invoices for a billing profile.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "periodStartDate", + "description": "Invoice period start date.", + "in": "query", + "required": true, + "type": "string" + }, + { + "name": "periodEndDate", + "description": "Invoice period end date.", + "in": "query", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/InvoiceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}": { + "get": { + "tags": [ + "Invoices" + ], + "x-ms-examples": { + "Invoice": { + "$ref": "./examples/Invoice.json" + } + }, + "operationId": "Invoices_Get", + "description": "Get the invoice by name.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByBillingAccountName", + "description": "Lists billing subscriptions by billing account name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "BillingSubscriptionsListByBillingAccount": { + "$ref": "./examples/BillingSubscriptionsListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingSubscriptionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByBillingProfileName", + "description": "Lists billing subscriptions by billing profile name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "BillingSubscriptionsListByBillingProfile": { + "$ref": "./examples/BillingSubscriptionsListByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingSubscriptionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_ListByInvoiceSectionName", + "description": "Lists billing subscription by invoice section name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "BillingSubscriptionsListByInvoiceSection": { + "$ref": "./examples/BillingSubscriptionsListByInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingSubscriptionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}": { + "get": { + "tags": [ + "BillingSubscriptions" + ], + "operationId": "BillingSubscriptions_Get", + "description": "Get a single billing subscription by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "BillingSubscription": { + "$ref": "./examples/BillingSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingSubscription" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/transfer": { + "post": { + "description": "Transfers the subscription from one invoice section to another within a billing account.", + "operationId": "BillingSubscriptions_Transfer", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "TransferBillingSubscription": { + "$ref": "./examples/TransferBillingSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + }, + "description": "Request parameters supplied to the Transfer Billing Subscription operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionResult" + } + }, + "202": { + "description": "Accepted. Billing Subscription transfer is in progress.", + "headers": { + "Location": { + "description": "Location URI to poll for result.", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/validateTransferEligibility": { + "post": { + "x-ms-examples": { + "SubscriptionTransferValidateSuccess": { + "$ref": "./examples/ValidateSubscriptionTransferSuccess.json" + }, + "SubscriptionTransferValidateFailure": { + "$ref": "./examples/ValidateSubscriptionTransferFailure.json" + } + }, + "operationId": "BillingSubscriptions_ValidateTransfer", + "description": "Validates the transfer of billing subscriptions across invoice sections.", + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingSubscriptionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + }, + "description": "Parameters supplied to the Transfer Billing Subscription operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateSubscriptionTransferEligibilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products": { + "get": { + "tags": [ + "Products" + ], + "operationId": "Products_ListByBillingAccountName", + "description": "Lists products by billing account name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "ProductsListByBillingAccount": { + "$ref": "./examples/ProductsListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProductsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products": { + "get": { + "tags": [ + "Products" + ], + "operationId": "Products_ListByInvoiceSectionName", + "description": "Lists products by invoice section name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "ProductsListByInvoiceSection": { + "$ref": "./examples/ProductsListByInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ProductsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}": { + "get": { + "tags": [ + "Products" + ], + "operationId": "Products_Get", + "description": "Get a single product by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "Product": { + "$ref": "./examples/Product.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/transfer": { + "post": { + "tags": [ + "Products" + ], + "operationId": "Products_Transfer", + "description": "The operation to transfer a Product to another invoice section.", + "x-ms-examples": { + "TransferProduct": { + "$ref": "./examples/TransferProduct.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferProductRequestProperties" + }, + "description": "Parameters supplied to the Transfer Product operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "Location URI to poll for result", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/validateTransferEligibility": { + "post": { + "x-ms-examples": { + "SubscriptionTransferValidateSuccess": { + "$ref": "./examples/ValidateProductTransferSuccess.json" + }, + "SubscriptionTransferValidateFailure": { + "$ref": "./examples/ValidateProductTransferFailure.json" + } + }, + "operationId": "Products_ValidateTransfer", + "description": "Validates the transfer of products across invoice sections.", + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TransferProductRequestProperties" + }, + "description": "Parameters supplied to the Transfer Products operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateProductTransferEligibilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByBillingAccountName", + "description": "Lists the transactions by billing account name for given start and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "TransactionsListByBillingAccount": { + "$ref": "./examples/TransactionsListByBillingAccount.json" + }, + "ReservationTransactionsListByBillingAccount": { + "$ref": "./examples/ReservationTransactionsListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TransactionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByBillingProfileName", + "description": "Lists the transactions by billing profile name for given start date and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "TransactionsListByBillingProfile": { + "$ref": "./examples/TransactionsListByBillingProfile.json" + }, + "ReservationTransactionsListByBillingProfile": { + "$ref": "./examples/ReservationTransactionsListByBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TransactionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_ListByInvoiceSectionName", + "description": "Lists the transactions by invoice section name for given start date and end date.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "TransactionsListByInvoiceSection": { + "$ref": "./examples/TransactionsListByInvoiceSection.json" + }, + "ReservationTransactionsListByInvoiceSection": { + "$ref": "./examples/ReservationTransactionsListByInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "description": "May be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/TransactionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/{transactionName}": { + "get": { + "tags": [ + "Transactions" + ], + "operationId": "Transactions_Get", + "description": "Get the transaction.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "Transaction": { + "$ref": "./examples/Transaction.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/transactionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Transaction" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default": { + "get": { + "tags": [ + "Policies" + ], + "operationId": "Policies_GetByBillingProfileName", + "description": "The policy for a given billing account name and billing profile name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "PolicyByBillingProfile": { + "$ref": "./examples/Policy.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Policy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Policies" + ], + "operationId": "Policies_Update", + "description": "The operation to update a policy.", + "x-ms-examples": { + "UpdateBillingProfile": { + "$ref": "./examples/UpdatePolicy.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Policy" + }, + "description": "Parameters supplied to the update policy operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Policy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty": { + "get": { + "tags": [ + "BillingProperties" + ], + "operationId": "BillingProperty_Get", + "description": "Get billing property by subscription Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/billing/" + }, + "x-ms-examples": { + "BillingProperty": { + "$ref": "./examples/BillingProperty.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingProperty" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}/updateAutoRenew": { + "post": { + "tags": [ + "Products" + ], + "operationId": "Products_UpdateAutoRenewByBillingAccountName", + "description": "Cancel auto renew for product by product id and billing account name", + "x-ms-examples": { + "ProductsCancelByBillingAccount": { + "$ref": "./examples/ProductCancelByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/updateAutoRenewRequestParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}/updateAutoRenew": { + "post": { + "tags": [ + "Products" + ], + "operationId": "Products_UpdateAutoRenewByInvoiceSectionName", + "description": "Cancel auto renew for product by product id and invoice section name", + "x-ms-examples": { + "CancelProductForInvoiceSection": { + "$ref": "./examples/ProductCancelForInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/productNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/updateAutoRenewRequestParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewOperation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/elevate": { + "post": { + "tags": [ + "InvoiceSections" + ], + "description": "Elevates the caller's access to match their billing profile access.", + "operationId": "InvoiceSections_ElevateToBillingProfile", + "x-ms-examples": { + "Elevate": { + "$ref": "./examples/ElevateInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "204": { + "description": "Elevated the caller's access to the invoice section." + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/initiateTransfer": { + "post": { + "tags": [ + "Transfers" + ], + "description": "Initiates the request to transfer the legacy subscriptions or RIs.", + "operationId": "Transfers_Initiate", + "x-ms-examples": { + "InitiateTransfer": { + "$ref": "./examples/InitiateTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/initiateTransferRequestParameter" + } + ], + "responses": { + "200": { + "description": "Initiated transfer details.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Gets the transfer details for given transfer Id.", + "operationId": "Transfers_Get", + "x-ms-examples": { + "TransferGet": { + "$ref": "./examples/GetTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Transfers" + ], + "description": "Cancels the transfer for given transfer Id.", + "operationId": "Transfers_Cancel", + "x-ms-examples": { + "TransferCancel": { + "$ref": "./examples/CancelTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of canceled transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Lists all transfer's details initiated from given invoice section.", + "operationId": "Transfers_List", + "x-ms-examples": { + "TransfersList": { + "$ref": "./examples/ListTransfers.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "200": { + "description": "List of transfers initiated from this invoice section.", + "schema": { + "$ref": "#/definitions/TransferDetailsListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}/acceptTransfer": { + "post": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Accepts the transfer with given transfer Id.", + "operationId": "RecipientTransfers_Accept", + "x-ms-examples": { + "AcceptTransfer": { + "$ref": "./examples/AcceptTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + }, + { + "$ref": "#/parameters/acceptTransferRequestParameter" + } + ], + "responses": { + "200": { + "description": "Details of the accepted transfer.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}/declineTransfer": { + "post": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Declines the transfer with given transfer Id.", + "operationId": "RecipientTransfers_Decline", + "x-ms-examples": { + "DeclineTransfer": { + "$ref": "./examples/DeclineTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of the declined transfer.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers/{transferName}": { + "get": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Gets the transfer with given transfer Id.", + "operationId": "RecipientTransfers_Get", + "x-ms-examples": { + "RecipientTransferGet": { + "$ref": "./examples/GetRecipientTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of the transfers with given Id.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/transfers": { + "get": { + "tags": [ + "RecipientTransfers" + ], + "summary": "Lists the transfers received by caller.", + "operationId": "RecipientTransfers_List", + "x-ms-examples": { + "RecipientTransfersList": { + "$ref": "./examples/ListRecipientTransfers.json" + } + }, + "responses": { + "200": { + "description": "List of transfers received by caller.", + "schema": { + "$ref": "#/definitions/RecipientTransferDetailsListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available billing REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingPermissions": { + "get": { + "tags": [ + "BillingPermissions" + ], + "x-ms-examples": { + "BillingAccountPermissionsList": { + "$ref": "./examples/BillingAccountPermissionsList.json" + } + }, + "operationId": "BillingPermissions_ListByBillingAccount", + "description": "Lists all billing permissions for the caller under a billing account.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingPermissionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingPermissions": { + "get": { + "tags": [ + "BillingPermissions" + ], + "x-ms-examples": { + "InvoiceSectionPermissionsList": { + "$ref": "./examples/InvoiceSectionPermissionsList.json" + } + }, + "operationId": "BillingPermissions_ListByInvoiceSections", + "description": "Lists all billing permissions for the caller under invoice section.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingPermissionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingPermissions": { + "get": { + "tags": [ + "BillingPermissions" + ], + "x-ms-examples": { + "BillingProfilePermissionsList": { + "$ref": "./examples/BillingProfilePermissionsList.json" + } + }, + "operationId": "BillingPermissions_ListByBillingProfile", + "description": "Lists all billingPermissions for the caller has for a billing account.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingPermissionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/{billingRoleDefinitionName}": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "BillingAccountRoleDefinition": { + "$ref": "./examples/BillingAccountRoleDefinition.json" + } + }, + "operationId": "BillingRoleDefinitions_GetByBillingAccountName", + "description": "Gets the role definition for a role", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingRoleDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/{billingRoleDefinitionName}": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "InvoiceSectionRoleDefinition": { + "$ref": "./examples/InvoiceSectionRoleDefinition.json" + } + }, + "operationId": "BillingRoleDefinitions_GetByInvoiceSectionName", + "description": "Gets the role definition for a role", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingRoleDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/{billingRoleDefinitionName}": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "BillingProfileRoleDefinition": { + "$ref": "./examples/BillingProfileRoleDefinition.json" + } + }, + "operationId": "BillingRoleDefinitions_GetByBillingProfileName", + "description": "Gets the role definition for a role", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/billingRoleDefinitionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "BillingAccountRoleDefinitionsList": { + "$ref": "./examples/BillingAccountRoleDefinitionsList.json" + } + }, + "operationId": "BillingRoleDefinitions_ListByBillingAccountName", + "description": "Lists the role definition for a billing account", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "InvoiceSectionRoleDefinitionsList": { + "$ref": "./examples/InvoiceSectionRoleDefinitionsList.json" + } + }, + "operationId": "BillingRoleDefinitions_ListByInvoiceSectionName", + "description": "Lists the role definition for an invoice Section", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions": { + "get": { + "tags": [ + "BillingRoleDefinitions" + ], + "x-ms-examples": { + "BillingProfileRoleDefinitionsList": { + "$ref": "./examples/BillingProfileRoleDefinitionsList.json" + } + }, + "operationId": "BillingRoleDefinitions_ListByBillingProfileName", + "description": "Lists the role definition for a Billing Profile", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingAccountRoleAssignment": { + "$ref": "./examples/BillingAccountRoleAssignment.json" + } + }, + "operationId": "BillingRoleAssignments_GetByBillingAccount", + "description": "Get the role assignment for the caller", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingRoleAssignmentNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingAccountRoleAssignmentDelete": { + "$ref": "./examples/BillingAccountRoleAssignmentDelete.json" + } + }, + "operationId": "BillingRoleAssignments_DeleteByBillingAccountName", + "description": "Delete the role assignment on this billing account", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingRoleAssignmentNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments/{billingRoleAssignmentName}": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "InvoiceSectionRoleAssignment": { + "$ref": "./examples/InvoiceSectionRoleAssignment.json" + } + }, + "operationId": "BillingRoleAssignments_GetByInvoiceSectionName", + "description": "Get the role assignment for the caller on the invoice Section", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingRoleAssignmentNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "InvoiceSectionRoleAssignmentDelete": { + "$ref": "./examples/InvoiceSectionRoleAssignmentDelete.json" + } + }, + "operationId": "BillingRoleAssignments_DeleteByInvoiceSectionName", + "description": "Delete the role assignment on the invoice Section", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "$ref": "#/parameters/billingRoleAssignmentNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/{billingRoleAssignmentName}": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingProfileRoleAssignment": { + "$ref": "./examples/BillingProfileRoleAssignment.json" + } + }, + "operationId": "BillingRoleAssignments_GetByBillingProfileName", + "description": "Get the role assignment for the caller on the Billing Profile", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/billingRoleAssignmentNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingProfileRoleAssignmentDelete": { + "$ref": "./examples/BillingProfileRoleAssignmentDelete.json" + } + }, + "operationId": "BillingRoleAssignments_DeleteByBillingProfileName", + "description": "Delete the role assignment on this Billing Profile", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/billingRoleAssignmentNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingAccountRoleAssignmentList": { + "$ref": "./examples/BillingAccountRoleAssignmentList.json" + } + }, + "operationId": "BillingRoleAssignments_ListByBillingAccountName", + "description": "Get the role assignments on the Billing Account", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "post": { + "tags": [ + "BillingRoleAssignments" + ], + "operationId": "BillingRoleAssignments_AddByBillingAccountName", + "description": "The operation to add a role assignment to a billing account.", + "x-ms-examples": { + "AddRoleAssignmentToBillingAccount": { + "$ref": "./examples/AddRoleAssignmentToBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentPayload" + }, + "description": "Parameters supplied to add a role assignment." + } + ], + "responses": { + "201": { + "description": "Role assignment is successfully created", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "InvoiceSectionRoleAssignmentList": { + "$ref": "./examples/InvoiceSectionRoleAssignmentList.json" + } + }, + "operationId": "BillingRoleAssignments_ListByInvoiceSectionName", + "description": "Get the role assignments on the invoice Section", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "post": { + "tags": [ + "BillingRoleAssignments" + ], + "operationId": "BillingRoleAssignments_AddByInvoiceSectionName", + "description": "The operation to add a role assignment to a invoice Section.", + "x-ms-examples": { + "AddRoleAssignmentToInvoiceSection": { + "$ref": "./examples/AddRoleAssignmentToInvoiceSection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceSectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentPayload" + }, + "description": "Parameters supplied to add a role assignment." + } + ], + "responses": { + "201": { + "description": "Role assignment is successfully created", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments": { + "get": { + "tags": [ + "BillingRoleAssignments" + ], + "x-ms-examples": { + "BillingProfileRoleAssignmentList": { + "$ref": "./examples/BillingProfileRoleAssignmentList.json" + } + }, + "operationId": "BillingRoleAssignments_ListByBillingProfileName", + "description": "Get the role assignments on the Billing Profile", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "post": { + "tags": [ + "BillingRoleAssignments" + ], + "operationId": "BillingRoleAssignments_AddByBillingProfileName", + "description": "The operation to add a role assignment to a billing profile.", + "x-ms-examples": { + "AddRoleAssignmentToBillingProfile": { + "$ref": "./examples/AddRoleAssignmentToBillingProfile.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentPayload" + }, + "description": "Parameters supplied to add a role assignment." + } + ], + "responses": { + "201": { + "description": "Role assignment is successfully created", + "schema": { + "$ref": "#/definitions/BillingRoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements": { + "get": { + "tags": [ + "Agreements" + ], + "x-ms-examples": { + "AgreementsListByBillingAccountName": { + "$ref": "./examples/AgreementsListByBillingAccountName.json" + } + }, + "operationId": "Agreements_ListByBillingAccountName", + "description": "Lists all agreements for a billing account.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the participants.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AgreementListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/{agreementName}": { + "get": { + "tags": [ + "Agreements" + ], + "x-ms-examples": { + "AgreementByName": { + "$ref": "./examples/AgreementByName.json" + } + }, + "operationId": "Agreements_Get", + "description": "Get the agreement by name.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/agreementNameParameter" + }, + { + "name": "$expand", + "description": "May be used to expand the participants.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Agreement" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default": { + "get": { + "tags": [ + "LineOfCredits" + ], + "x-ms-examples": { + "LineOfCreditBySubscription": { + "$ref": "./examples/LineOfCreditBySubscription.json" + } + }, + "operationId": "LineOfCredits_Get", + "description": "Get the current line of credit.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LineOfCredit" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "LineOfCredits" + ], + "operationId": "LineOfCredits_Update", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "IncreaseLineOfCreditBySubscription": { + "$ref": "./examples/IncreaseLineOfCreditBySubscription.json" + } + }, + "description": "Increase the current line of credit.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LineOfCredit" + }, + "description": "Parameters supplied to the increase line of credit operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LineOfCredit" + } + }, + "202": { + "description": "Accepted. Line of credit increase is in progress.", + "headers": { + "Location": { + "description": "Location URI to poll for result.", + "type": "string" + }, + "Retry-After": { + "description": "Recommends the retryable time after receiving this.", + "type": "integer" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "InitiateTransferRequest": { + "type": "object", + "description": "Request parameters to initiate transfer.", + "properties": { + "properties": { + "description": "Request parameters to initiate transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InitiateTransferProperties" + } + } + }, + "ValidateAddressResponse": { + "type": "object", + "description": "Result of the address validation", + "properties": { + "status": { + "description": "status of the address validation.", + "$ref": "#/definitions/AddressValidationStatus" + }, + "suggestedAddresses": { + "description": "list of suggested addresses.", + "type": "array", + "items": { + "$ref": "#/definitions/Address" + } + }, + "validationMessage": { + "description": "Validation error message.", + "type": "string" + } + } + }, + "AddressValidationStatus": { + "type": "string", + "description": "Status of the address validation response.", + "enum": [ + "Valid", + "Invalid" + ], + "x-ms-enum": { + "name": "addressValidationStatus", + "modelAsString": true + } + }, + "InitiateTransferProperties": { + "type": "object", + "description": "Request parameters to initiate transfer.", + "properties": { + "recipientEmailId": { + "type": "string", + "description": "Email Id of recipient for transfer." + } + } + }, + "AcceptTransferRequest": { + "type": "object", + "description": "Request parameters to accept transfer.", + "properties": { + "properties": { + "description": "Request parameters to accept transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AcceptTransferProperties" + } + } + }, + "AcceptTransferProperties": { + "type": "object", + "description": "Request parameters to accept transfer.", + "properties": { + "productDetails": { + "description": "Request parameters to accept transfer.", + "type": "array", + "items": { + "$ref": "#/definitions/ProductDetails" + } + } + } + }, + "ProductDetails": { + "type": "object", + "description": "Details of the product to be transferred.", + "properties": { + "productType": { + "description": "Type of the product to be transferred.", + "$ref": "#/definitions/ProductType" + }, + "productId": { + "type": "string", + "description": "Id of product to be transferred." + } + } + }, + "ProductType": { + "type": "string", + "description": "Type of the product to be transferred.", + "enum": [ + "AzureSubscription", + "AzureReservation" + ], + "x-ms-enum": { + "name": "productType", + "modelAsString": true + } + }, + "TransferDetails": { + "type": "object", + "description": "Details of the transfer.", + "properties": { + "properties": { + "description": "Details of the transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransferProperties" + } + } + }, + "RecipientTransferDetails": { + "type": "object", + "description": "Details of the transfer.", + "properties": { + "properties": { + "description": "Details of the transfer.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RecipientTransferProperties" + } + } + }, + "DetailedTransferStatus": { + "type": "object", + "description": "Detailed transfer status.", + "properties": { + "productType": { + "type": "string", + "$ref": "#/definitions/ProductType", + "readOnly": true, + "description": "Type of product being transferred." + }, + "productId": { + "type": "string", + "readOnly": true, + "description": "Id of product being transferred." + }, + "transferStatus": { + "type": "string", + "$ref": "#/definitions/ProductTransferStatus", + "readOnly": true, + "description": "Transfer status." + }, + "errorDetails": { + "description": "Error details for transfer execution.", + "$ref": "#/definitions/Error" + } + } + }, + "Error": { + "description": "Error details for transfer execution.", + "properties": { + "errorCode": { + "type": "string", + "readOnly": true, + "description": "Error code." + }, + "errorMessage": { + "type": "string", + "readOnly": true, + "description": "Error message." + } + } + }, + "EligibleProductType": { + "type": "string", + "description": "Type of the products that can be transferred.", + "enum": [ + "DevTestAzureSubscription", + "StandardAzureSubscription", + "AzureReservation" + ], + "x-ms-enum": { + "name": "eligibleProductType", + "modelAsString": true + } + }, + "TransferProperties": { + "description": "Transfer details", + "type": "object", + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Transfer creation time.", + "readOnly": true + }, + "expirationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer expiration time." + }, + "invoiceSectionId": { + "type": "string", + "description": "Target invoice section Id.", + "readOnly": true + }, + "billingAccountId": { + "type": "string", + "description": "Target billing account Id.", + "readOnly": true + }, + "billingProfileId": { + "type": "string", + "description": "Target billing profile Id.", + "readOnly": true + }, + "transferStatus": { + "type": "string", + "$ref": "#/definitions/TransferStatus", + "description": "Overall transfer status.", + "readOnly": true + }, + "recipientEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of recipient of transfer." + }, + "initiatorEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of initiator of transfer." + }, + "canceledBy": { + "type": "string", + "readOnly": true, + "description": "Email Id who user canceled the transfer." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer last modification time." + }, + "detailedTransferStatus": { + "type": "array", + "readOnly": true, + "description": "Detailed transfer status.", + "items": { + "$ref": "#/definitions/DetailedTransferStatus" + } + } + } + }, + "RecipientTransferProperties": { + "description": "Transfer Details.", + "type": "object", + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Transfer creation time.", + "readOnly": true + }, + "expirationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer expiration time." + }, + "allowedProductType": { + "type": "array", + "readOnly": true, + "description": "Type of subscriptions that can be transferred.", + "items": { + "$ref": "#/definitions/EligibleProductType" + } + }, + "transferStatus": { + "type": "string", + "$ref": "#/definitions/TransferStatus", + "description": "Overall transfer status.", + "readOnly": true + }, + "recipientEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of recipient of transfer." + }, + "initiatorEmailId": { + "type": "string", + "readOnly": true, + "description": "Email Id of initiator of transfer." + }, + "canceledBy": { + "type": "string", + "readOnly": true, + "description": "Email Id who user canceled the transfer." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Transfer last modification time." + }, + "detailedTransferStatus": { + "type": "array", + "readOnly": true, + "description": "Detailed transfer status.", + "items": { + "$ref": "#/definitions/DetailedTransferStatus" + } + } + } + }, + "TransferStatus": { + "type": "string", + "description": "Possible transfer status.", + "enum": [ + "Pending", + "InProgress", + "Completed", + "CompletedWithErrors", + "Failed", + "Canceled", + "Declined" + ], + "x-ms-enum": { + "name": "transferStatus", + "modelAsString": true + } + }, + "ProductTransferStatus": { + "type": "string", + "description": "Possible transfer status.", + "enum": [ + "NotStarted", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "productTransferStatus", + "modelAsString": true + } + }, + "RecipientTransferDetailsListResult": { + "description": "Result of listing details of the transfer received by caller.", + "properties": { + "value": { + "description": "The list of transfers received by caller.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/RecipientTransferDetails" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "TransferDetailsListResult": { + "description": "Result of listing details of the transfer initiated by caller.", + "properties": { + "value": { + "description": "The list of transfers initiated by caller.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TransferDetails" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "TransferProductRequestProperties": { + "description": "The properties of the product to initiate a transfer.", + "properties": { + "destinationInvoiceSectionId": { + "type": "string", + "description": "The destination invoice section id." + }, + "destinationBillingProfileId": { + "type": "string", + "description": "The destination billing profile id." + } + } + }, + "TransferBillingSubscriptionResult": { + "type": "object", + "description": "Request parameters to transfer billing subscription.", + "properties": { + "properties": { + "description": "Request parameters to transfer billing subscription.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransferBillingSubscriptionResultProperties" + } + } + }, + "TransferBillingSubscriptionResultProperties": { + "type": "object", + "description": "Transfer billing subscription result properties.", + "properties": { + "billingSubscriptionName": { + "type": "string", + "description": "The destination billing subscription id." + } + } + }, + "TransferBillingSubscriptionRequest": { + "type": "object", + "description": "Request parameters to transfer billing subscription.", + "properties": { + "properties": { + "description": "Request parameters to transfer billing subscription.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties" + } + } + }, + "TransferBillingSubscriptionRequestProperties": { + "type": "object", + "description": "Request parameters to transfer billing subscription.", + "properties": { + "destinationInvoiceSectionId": { + "type": "string", + "description": "The destination invoice section id." + }, + "destinationBillingProfileId": { + "type": "string", + "description": "The destination billing profile id." + } + } + }, + "ValidateSubscriptionTransferEligibilityResult": { + "type": "object", + "description": "Result of the transfer eligibility validation.", + "properties": { + "isTransferEligible": { + "description": "Specifies whether the transfer is eligible or not.", + "type": "boolean", + "readOnly": true + }, + "errorDetails": { + "description": "Validation error details.", + "$ref": "#/definitions/ValidateSubscriptionTransferEligibilityError" + } + } + }, + "ValidateSubscriptionTransferEligibilityError": { + "type": "object", + "description": "Error details of the transfer eligibility validation", + "properties": { + "code": { + "description": "Error code for the product transfer validation.", + "$ref": "#/definitions/SubscriptionTransferValidationErrorCode" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "details": { + "description": "Detailed error message explaining the error.", + "type": "string" + } + } + }, + "SubscriptionTransferValidationErrorCode": { + "type": "string", + "description": "Error code of the transfer validation response.", + "enum": [ + "InvalidSource", + "SubscriptionNotActive", + "InsufficientPermissionOnSource", + "InsufficientPermissionOnDestination", + "DestinationBillingProfilePastDue", + "SubscriptionTypeNotSupported", + "CrossBillingAccountNotAllowed", + "NotAvailableForDestinationMarket" + ], + "x-ms-enum": { + "name": "subscriptionTransferValidationErrorCode", + "modelAsString": true + } + }, + "UpdateAutoRenewOperation": { + "type": "object", + "description": "Summary of cancel product operation", + "properties": { + "properties": { + "description": "Summary of update auto renew operation properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/UpdateAutoRenewOperationProperties" + } + } + }, + "UpdateAutoRenewOperationProperties": { + "type": "object", + "description": "update auto renew operation properties", + "properties": { + "endDate": { + "type": "string", + "format": "date-time", + "description": "The end date of this asset" + } + } + }, + "BillingAccountListResult": { + "description": "Result of listing billing accounts.", + "properties": { + "value": { + "description": "The list of billing accounts.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingAccount" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "BillingAccount": { + "description": "A billing account resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A billing account.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingAccountProperties" + } + } + }, + "BillingAccountProperties": { + "description": "The properties of the billing account.", + "properties": { + "displayName": { + "description": "The billing account name.", + "type": "string", + "readOnly": true + }, + "address": { + "description": "The address associated with billing account.", + "$ref": "#/definitions/Address" + }, + "agreementType": { + "description": "The type of agreement.", + "type": "string", + "enum": [ + "MicrosoftCustomerAgreement", + "EnterpriseAgreement", + "Legacy" + ], + "readOnly": true + }, + "customerType": { + "description": "The type of customer.", + "type": "string", + "enum": [ + "Enterprise", + "Individual", + "Partner" + ], + "readOnly": true + }, + "billingProfiles": { + "description": "The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.", + "type": "array", + "items": { + "$ref": "#/definitions/BillingProfile" + } + }, + "enrollmentDetails": { + "description": "The details about the associated legacy enrollment. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/Enrollment", + "readOnly": true + }, + "departments": { + "description": "The departments associated to the enrollment.", + "type": "array", + "items": { + "$ref": "#/definitions/Department" + } + }, + "enrollmentAccounts": { + "description": "The accounts associated to the enrollment.", + "type": "array", + "items": { + "$ref": "#/definitions/EnrollmentAccount" + } + }, + "organizationId": { + "description": "Organization id.", + "type": "string", + "readOnly": true + } + } + }, + "BillingAccountUpdateRequest": { + "description": "The request properties of the billing account that can be updated.", + "properties": { + "properties": { + "description": "A billing property.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingAccountProperties" + } + } + }, + "BillingProperty": { + "description": "A billing property resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A billing property.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingPropertyProperties" + } + } + }, + "BillingPropertyProperties": { + "description": "The billing property.", + "properties": { + "billingTenantId": { + "description": "Billing tenant Id.", + "type": "string", + "readOnly": true + }, + "billingAccountId": { + "description": "Billing account Id.", + "type": "string", + "readOnly": true + }, + "billingAccountDisplayName": { + "description": "Billing account display name.", + "type": "string", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing profile Id.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing profile display name.", + "type": "string", + "readOnly": true + }, + "costCenter": { + "description": "Cost center name.", + "type": "string", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice Section Id.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice Section display name.", + "type": "string", + "readOnly": true + }, + "productId": { + "description": "Product Id.", + "type": "string", + "readOnly": true + }, + "productName": { + "description": "Product name.", + "type": "string", + "readOnly": true + }, + "skuId": { + "description": "SKU Id.", + "type": "string", + "readOnly": true + }, + "skuDescription": { + "description": "SKU description.", + "type": "string", + "readOnly": true + } + } + }, + "Enrollment": { + "description": "Current entity level details", + "properties": { + "startDate": { + "description": "Enrollment Start Date", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "Enrollment End Date", + "type": "string", + "format": "date-time" + }, + "currency": { + "description": "The currency associated with enrollment", + "type": "string", + "readOnly": true + }, + "channel": { + "description": "The channel for Enrollment", + "type": "string", + "readOnly": true + }, + "policies": { + "description": "The attributes associated with legacy enrollment.", + "$ref": "#/definitions/EnrollmentPolicies", + "readOnly": true + }, + "language": { + "description": "The language for Enrollment", + "type": "string", + "readOnly": true + }, + "countryCode": { + "description": "The countryCode for Enrollment", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Enrollment status", + "type": "string", + "readOnly": true + }, + "billingCycle": { + "description": "Enrollment billing cycle", + "type": "string", + "readOnly": true + } + } + }, + "EnrollmentPolicies": { + "description": "The attributes associated with legacy enrollment", + "properties": { + "accountOwnerViewCharges": { + "description": "The accountOwnerViewCharges flag for Enrollment", + "type": "boolean", + "readOnly": true + }, + "departmentAdminViewCharges": { + "description": "The departmentAdminViewCharges flag for Enrollment", + "type": "boolean", + "readOnly": true + }, + "marketplacesEnabled": { + "description": "The marketplaces flag for Enrollment", + "type": "boolean", + "readOnly": true + }, + "reservedInstancesEnabled": { + "description": "The reserved instances flag for Enrollment", + "type": "boolean", + "readOnly": true + } + } + }, + "DepartmentListResult": { + "description": "Result of listing departments.", + "properties": { + "value": { + "description": "The list of departments.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Department" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Department": { + "description": "A department resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A department.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DepartmentProperties" + } + } + }, + "DepartmentProperties": { + "description": "The properties of the department.", + "properties": { + "departmentName": { + "description": "The name for department.", + "type": "string" + }, + "costCenter": { + "description": "The cost center name.", + "type": "string" + }, + "status": { + "description": "The status for department.", + "type": "string" + }, + "enrollmentAccounts": { + "description": "Associated enrollment accounts. By default this is not populated, unless it's specified in $expand.", + "type": "array", + "items": { + "$ref": "#/definitions/EnrollmentAccount" + } + } + } + }, + "EnrollmentAccountListResult": { + "description": "Result of listing enrollment accounts.", + "properties": { + "value": { + "description": "The list of enrollment accounts.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/EnrollmentAccount" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "EnrollmentAccount": { + "description": "An account resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "An account.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnrollmentAccountProperties" + } + } + }, + "EnrollmentAccountProperties": { + "description": "The properties of the account.", + "properties": { + "accountName": { + "description": "The account name.", + "type": "string" + }, + "costCenter": { + "description": "The cost center name.", + "type": "string" + }, + "accountOwner": { + "description": "The account owner", + "type": "string" + }, + "status": { + "description": "The status for account.", + "type": "string" + }, + "startDate": { + "description": "Account Start Date", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "Account End Date", + "type": "string", + "format": "date-time" + }, + "department": { + "description": "Associated department. By default this is not populated, unless it's specified in $expand.", + "$ref": "#/definitions/Department" + } + } + }, + "BillingProfileListResult": { + "description": "Result of listing billing profiles.", + "properties": { + "value": { + "description": "The list of billing profiles.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingProfile" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "BillingProfile": { + "description": "A billing profile resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A billing profile.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingProfileProperties" + } + } + }, + "BillingProfileCreationRequest": { + "description": "The request parameters for creating a new billing profile.", + "properties": { + "displayName": { + "description": "The billing profile name.", + "type": "string" + }, + "poNumber": { + "description": "Purchase order number.", + "type": "string" + }, + "address": { + "description": "Billing address.", + "$ref": "#/definitions/Address" + }, + "invoiceEmailOptIn": { + "description": "If the billing profile is opted in to receive invoices via email.", + "type": "boolean" + }, + "enabledAzurePlans": { + "description": "Enabled azure plans for this billing profile.", + "type": "array", + "items": { + "$ref": "#/definitions/AzurePlan" + } + } + } + }, + "BillingProfileProperties": { + "description": "The properties of the billing profile.", + "properties": { + "displayName": { + "description": "The billing profile name.", + "type": "string" + }, + "poNumber": { + "description": "Purchase order number.", + "type": "string" + }, + "address": { + "description": "Billing address.", + "$ref": "#/definitions/Address" + }, + "invoiceEmailOptIn": { + "description": "If the billing profile is opted in to receive invoices via email.", + "type": "boolean", + "readOnly": true + }, + "invoiceDay": { + "description": "Invoice day.", + "type": "integer", + "readOnly": true + }, + "currency": { + "description": "The currency associated with the billing profile.", + "type": "string", + "readOnly": true + }, + "enabledAzurePlans": { + "description": "Information about the enabled azure plans.", + "type": "array", + "items": { + "$ref": "#/definitions/AzurePlan" + } + }, + "invoiceSections": { + "description": "The invoice sections associated to the billing profile.", + "type": "array", + "items": { + "$ref": "#/definitions/InvoiceSection" + } + } + } + }, + "Address": { + "description": "Address details.", + "properties": { + "firstName": { + "description": "First Name.", + "type": "string" + }, + "lastName": { + "description": "Last Name.", + "type": "string" + }, + "companyName": { + "description": "Company Name.", + "type": "string" + }, + "addressLine1": { + "description": "Address Line1.", + "type": "string" + }, + "addressLine2": { + "description": "Address Line2.", + "type": "string" + }, + "addressLine3": { + "description": "Address Line3.", + "type": "string" + }, + "city": { + "description": "Address City.", + "type": "string" + }, + "region": { + "description": "Address Region.", + "type": "string" + }, + "country": { + "description": "Country code uses ISO2, 2-digit format.", + "type": "string" + }, + "postalCode": { + "description": "Address Postal Code.", + "type": "string" + } + } + }, + "InvoiceSectionCreationRequest": { + "description": "The properties of an InvoiceSection.", + "properties": { + "displayName": { + "description": "The name of the InvoiceSection.", + "type": "string" + }, + "billingProfileId": { + "description": "The billing profile id.", + "type": "string" + } + } + }, + "InvoiceSectionListResult": { + "description": "Result of listing invoice sections.", + "properties": { + "value": { + "description": "The list of invoice sections.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/InvoiceSection" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "InvoiceSection": { + "description": "An InvoiceSection resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The InvoiceSection.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InvoiceSectionProperties" + } + } + }, + "InvoiceSectionProperties": { + "description": "The properties of an InvoiceSection.", + "properties": { + "displayName": { + "description": "The name of the InvoiceSection.", + "type": "string" + } + } + }, + "AzurePlan": { + "description": "Details about the azure plan.", + "properties": { + "skuId": { + "description": "The sku id.", + "type": "string" + }, + "skuDescription": { + "description": "The sku description.", + "type": "string", + "readOnly": true + } + } + }, + "DownloadUrl": { + "description": "A secure URL that can be used to download a an entity until the URL expires.", + "properties": { + "expiryTime": { + "description": "The time in UTC at which this download URL will expire.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "url": { + "description": "The URL to the PDF file.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "The target of the particular error.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true + }, + "InvoiceListResult": { + "description": "Result of listing invoices.", + "properties": { + "value": { + "description": "The list of invoices.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Invoice" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Invoice": { + "description": "An invoice resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "An invoice.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/InvoiceProperties" + } + } + }, + "InvoiceProperties": { + "description": "The properties of the invoice.", + "properties": { + "dueDate": { + "description": "The due date for invoice.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoiceDate": { + "description": "The date when invoice was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "status": { + "description": "Invoice status.", + "type": "string", + "enum": [ + "PastDue", + "Due", + "Paid", + "Void" + ], + "readOnly": true + }, + "amountDue": { + "description": "Amount due.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "billedAmount": { + "description": "Amount billed.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "invoicePeriodStartDate": { + "description": "The start date of the billing period.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoicePeriodEndDate": { + "description": "The end date of the billing period.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingProfileId": { + "description": "The billing profile id this invoice belongs to.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "The billing profile display name this invoice belongs to.", + "type": "string", + "readOnly": true + }, + "purchaseOrderNumber": { + "description": "The purchase identifier for the invoice.", + "type": "string", + "readOnly": true + }, + "documents": { + "description": "List of documents available to download including invoice and tax documents.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Document" + } + }, + "payments": { + "description": "List of payments.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PaymentProperties" + } + } + } + }, + "PaymentProperties": { + "description": "The properties of the payment.", + "properties": { + "paymentType": { + "description": "The type of payment.", + "type": "string", + "readOnly": true + }, + "amount": { + "description": "The paid amount.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "date": { + "description": "The date of the payment.", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, + "Document": { + "description": "The properties of the invoice download.", + "properties": { + "kind": { + "description": "Document type.", + "type": "string", + "enum": [ + "Invoice", + "VoidNote", + "Receipt", + "CreditNote" + ], + "readOnly": true + }, + "url": { + "description": "Document URL.", + "type": "string", + "readOnly": true + } + } + }, + "ProductsListResult": { + "description": "Result of listing products. It contains a list of available products summaries in reverse chronological order by purchase date.", + "properties": { + "value": { + "description": "The list of products.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Product" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Product": { + "description": "A product resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProductProperties", + "title": "Product properties" + } + } + }, + "ProductProperties": { + "description": "The properties of the product.", + "properties": { + "displayName": { + "description": "The display name of the product.", + "type": "string", + "readOnly": true + }, + "purchaseDate": { + "description": "The date of purchase.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "productTypeId": { + "description": "The product type id.", + "type": "string", + "readOnly": true + }, + "productType": { + "description": "The type of product.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Product status.", + "type": "string", + "enum": [ + "Active", + "Inactive", + "PastDue", + "Expiring", + "Expired", + "Disabled", + "Cancelled", + "AutoRenew" + ], + "x-ms-enum": { + "name": "ProductStatusType", + "modelAsString": true + } + }, + "endDate": { + "description": "end date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingFrequency": { + "description": "Billing frequency.", + "type": "string", + "enum": [ + "OneTime", + "Monthly", + "UsageBased" + ], + "x-ms-enum": { + "name": "BillingFrequency", + "modelAsString": true + } + }, + "lastCharge": { + "description": "Last month charges.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "lastChargeDate": { + "description": "The date of the last charge.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "quantity": { + "description": "The purchased product quantity.", + "type": "number", + "readOnly": true + }, + "skuId": { + "description": "Sku Id.", + "type": "string", + "readOnly": true + }, + "skuDescription": { + "description": "Sku description.", + "type": "string", + "readOnly": true + }, + "availabilityId": { + "description": "Availability Id.", + "type": "string", + "readOnly": true + }, + "parentProductId": { + "description": "Parent Product Id.", + "type": "string", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice section display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing Profile id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing Profile display name to which this product belongs.", + "type": "string", + "readOnly": true + } + } + }, + "ValidateProductTransferEligibilityResult": { + "type": "object", + "description": "Result of the product transfer eligibility validation.", + "properties": { + "isTransferEligible": { + "description": "Specifies whether the transfer is eligible or not.", + "type": "boolean", + "readOnly": true + }, + "errorDetails": { + "description": "Validation error details.", + "$ref": "#/definitions/ValidateProductTransferEligibilityError" + } + } + }, + "ValidateProductTransferEligibilityError": { + "type": "object", + "description": "Error details of the product transfer eligibility validation.", + "properties": { + "code": { + "description": "Error code for the product transfer validation.", + "$ref": "#/definitions/ProductTransferValidationErrorCode" + }, + "message": { + "description": "The error message.", + "type": "string" + }, + "details": { + "description": "Detailed error message explaining the error.", + "type": "string" + } + } + }, + "ProductTransferValidationErrorCode": { + "type": "string", + "description": "Error code of the transfer validation response.", + "enum": [ + "InvalidSource", + "ProductNotActive", + "InsufficientPermissionOnSource", + "InsufficientPermissionOnDestination", + "DestinationBillingProfilePastDue", + "ProductTypeNotSupported", + "CrossBillingAccountNotAllowed", + "NotAvailableForDestinationMarket", + "OneTimePurchaseProductTransferNotAllowed" + ], + "x-ms-enum": { + "name": "productTransferValidationErrorCode", + "modelAsString": true + } + }, + "BillingSubscriptionsListResult": { + "description": "Result of listing billing subscriptions.", + "properties": { + "value": { + "description": "The list of billing subscriptions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingSubscription" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "BillingSubscription": { + "description": "A billing Subscription resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingSubscriptionProperties", + "title": "Billing subscription properties" + } + } + }, + "BillingSubscriptionProperties": { + "description": "The usage context properties.", + "properties": { + "displayName": { + "description": "display name.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "Subscription Id.", + "type": "string", + "format": "uuid", + "readOnly": true + }, + "subscriptionBillingStatus": { + "description": "Subscription billing status.", + "type": "string", + "enum": [ + "Active", + "Inactive", + "Abandoned", + "Deleted", + "Warning" + ], + "x-ms-enum": { + "name": "BillingSubscriptionStatusType", + "modelAsString": true + } + }, + "lastMonthCharges": { + "description": "Last month charges.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "monthToDateCharges": { + "description": "Month to date charges.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "billingProfileId": { + "description": "Billing Profile id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing Profile display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice section display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "skuId": { + "description": "The sku id.", + "type": "string" + }, + "skuDescription": { + "description": "The sku description.", + "type": "string", + "readOnly": true + } + } + }, + "EnrollmentAccountContext": { + "description": "The rating context.", + "properties": { + "costCenter": { + "description": "The cost center name.", + "type": "string" + }, + "startDate": { + "description": "Account Start Date", + "type": "string", + "format": "date-time" + }, + "endDate": { + "description": "Account End Date", + "type": "string", + "format": "date-time" + }, + "enrollmentAccountName": { + "description": "The enrollment account id.", + "type": "string" + } + } + }, + "TransactionListResult": { + "description": "Result of listing reservation transactions.", + "properties": { + "value": { + "description": "The list of reservation transactions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Transaction" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Transaction": { + "description": "A reservation transaction resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransactionProperties", + "title": "Reservation transaction properties" + } + } + }, + "TransactionProperties": { + "description": "The properties of the reservation transaction.", + "properties": { + "kind": { + "type": "string", + "description": "The kind of transaction. Choices are all and reservation.", + "enum": [ + "all", + "reservation" + ], + "x-ms-enum": { + "name": "TransactionTypeKind", + "modelAsString": true + } + }, + "date": { + "description": "The date of reservation transaction.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "invoice": { + "description": "Invoice number or 'pending' if not invoiced.", + "type": "string", + "readOnly": true + }, + "orderId": { + "description": "The reservation order id.", + "type": "string", + "readOnly": true + }, + "orderName": { + "description": "The reservation order name.", + "type": "string", + "readOnly": true + }, + "productFamily": { + "description": "The product family.", + "type": "string", + "readOnly": true + }, + "productTypeId": { + "description": "The product type id.", + "type": "string", + "readOnly": true + }, + "productType": { + "description": "The type of product.", + "type": "string", + "readOnly": true + }, + "productDescription": { + "description": "Product description.", + "type": "string", + "readOnly": true + }, + "transactionType": { + "description": "Transaction types.", + "type": "string", + "enum": [ + "Purchase", + "Usage Charge" + ], + "x-ms-enum": { + "name": "ReservationType", + "modelAsString": true + } + }, + "transactionAmount": { + "description": "Last charge associated with the purchase.", + "readOnly": true, + "$ref": "#/definitions/Amount" + }, + "quantity": { + "description": "Purchase quantity.", + "type": "integer", + "readOnly": true + }, + "invoiceSectionId": { + "description": "Invoice section id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "invoiceSectionDisplayName": { + "description": "Invoice section display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileId": { + "description": "Billing Profile id to which this product belongs.", + "type": "string", + "readOnly": true + }, + "billingProfileDisplayName": { + "description": "Billing Profile display name to which this product belongs.", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "The subscription id.", + "type": "string", + "readOnly": true + }, + "subscriptionName": { + "description": "The subscription name.", + "type": "string", + "readOnly": true + } + } + }, + "Policy": { + "description": "The Policy.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PolicyProperties", + "title": "Policy properties" + } + } + }, + "PolicyProperties": { + "description": "The properties of policy.", + "properties": { + "marketplacePurchases": { + "description": "The marketplace purchases allowed or not.", + "type": "string", + "enum": [ + "Allowed", + "NotAllowed" + ], + "x-ms-enum": { + "name": "MarketplacePurchasesPolicy", + "modelAsString": true + } + }, + "reservationPurchases": { + "description": "The reservation purchases allowed or not.", + "type": "string", + "enum": [ + "Allowed", + "NotAllowed" + ], + "x-ms-enum": { + "name": "ReservationPurchasesPolicy", + "modelAsString": true + } + }, + "viewCharges": { + "description": "Who can view charges.", + "type": "string", + "enum": [ + "None", + "SubscriptionOwner" + ], + "x-ms-enum": { + "name": "ViewChargesPolicy", + "modelAsString": true + } + }, + "freeMarketplacePurchases": { + "description": "The free marketplace purchases allowed or not.", + "type": "string", + "enum": [ + "Allowed", + "NotAllowed" + ], + "x-ms-enum": { + "name": "FreeMarketplacePurchasesPolicy", + "modelAsString": true + } + } + } + }, + "AvailableBalance": { + "description": "Latest available balance on Monetary Credit PI.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AvailableBalanceProperties", + "title": "Available balance properties" + } + } + }, + "AvailableBalanceProperties": { + "description": "The properties of available balance.", + "properties": { + "amount": { + "description": "Balance Amount.", + "readOnly": true, + "$ref": "#/definitions/Amount" + } + } + }, + "Amount": { + "description": "The Amount.", + "properties": { + "currency": { + "description": "The currency for the amount value.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Amount value.", + "type": "number" + } + } + }, + "PaymentMethodsListResult": { + "description": "Result of listing payment methods.", + "properties": { + "value": { + "description": "The list of payment methods.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PaymentMethod" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PaymentMethod": { + "description": "A payment method resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PaymentMethodProperties", + "title": "Payment method properties" + } + } + }, + "PaymentMethodProperties": { + "description": "The properties of the payment method.", + "properties": { + "paymentMethodType": { + "description": "Payment method type.", + "type": "string", + "enum": [ + "Credits", + "ChequeWire" + ], + "x-ms-enum": { + "name": "PaymentMethodType", + "modelAsString": true + } + }, + "details": { + "description": "Details about the payment method.", + "type": "string", + "readOnly": true + }, + "expiration": { + "description": "Expiration date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "currency": { + "description": "The currency associated with the payment method.", + "type": "string", + "readOnly": true + } + } + }, + "UpdateAutoRenewRequest": { + "type": "object", + "description": "Request parameters to update auto renew for support product.", + "properties": { + "autoRenew": { + "description": "Request parameters to update auto renew policy a product.", + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "UpdateAutoRenew", + "modelAsString": true + } + } + } + }, + "Operation": { + "description": "A Billing REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Billing.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: Invoice, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result listing billing operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of billing operations supported by the Microsoft.Billing resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "BillingRoleAssignmentPayload": { + "description": "The payload use to update role assignment on a scope", + "properties": { + "principalId": { + "description": "The user's principal id that the role gets assigned to", + "type": "string" + }, + "billingRoleDefinitionId": { + "description": "The role definition id", + "type": "string" + } + } + }, + "BillingRoleAssignmentListResult": { + "description": "Result of get list of role assignments", + "properties": { + "value": { + "description": "The list role assignments", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingRoleAssignment" + } + } + } + }, + "BillingRoleAssignment": { + "description": "a role assignment", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The role assignment the caller has", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingRoleAssignmentProperties" + } + } + }, + "BillingRoleAssignmentProperties": { + "description": "The properties of the a role assignment.", + "properties": { + "createdOn": { + "description": "the date the role assignment is created", + "type": "string", + "readOnly": true + }, + "createdByPrincipalTenantId": { + "description": "the creator's tenant Id", + "type": "string", + "readOnly": true + }, + "createdByPrincipalId": { + "description": "the creator's principal Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "the name of the role assignment", + "type": "string", + "readOnly": true + }, + "principalId": { + "description": "The user's principal id that the role gets assigned to", + "type": "string", + "readOnly": true + }, + "roleDefinitionName": { + "description": "The role definition id", + "type": "string", + "readOnly": true + }, + "scope": { + "description": "The scope the role get assigned to", + "type": "string", + "readOnly": true + } + } + }, + "BillingRoleDefinitionListResult": { + "description": "list the role definitions.", + "properties": { + "value": { + "description": "The list of role definitions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingRoleDefinition" + } + } + } + }, + "BillingRoleDefinition": { + "description": "Result of get role definition for a role.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "The role definition for a role.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingRoleDefinitionProperties" + } + } + }, + "BillingRoleDefinitionProperties": { + "description": "The properties of the a role definition.", + "properties": { + "description": { + "description": "The role description", + "type": "string", + "readOnly": true + }, + "permissions": { + "description": "The billingPermissions the role has", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BillingPermissionsListResult" + }, + "roleName": { + "description": "The name of the role", + "type": "string", + "readOnly": true + } + } + }, + "BillingPermissionsListResult": { + "description": "Result of list billingPermissions a caller has on a billing account.", + "properties": { + "value": { + "description": "The list OF billingPermissions a caller has on a billing account.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BillingPermissionsProperties" + } + } + } + }, + "BillingPermissionsProperties": { + "description": "The set of allowed action and not allowed actions a caller has on a billing account", + "type": "object", + "properties": { + "actions": { + "description": "The set of actions that the caller is allowed to do", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Action" + } + }, + "notActions": { + "description": "The set of actions the caller is not allowed to do", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/NotAction" + } + } + } + }, + "AgreementListResult": { + "description": "Result of listing agreements.", + "properties": { + "value": { + "description": "The list of agreements.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Agreement" + } + }, + "nextLink": { + "description": "The link (url) to the next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Agreement": { + "description": "An agreement resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "An agreement.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AgreementProperties" + } + } + }, + "AgreementProperties": { + "description": "The properties of the agreement.", + "properties": { + "agreementLink": { + "description": "The link to the agreement.", + "type": "string", + "readOnly": true + }, + "effectiveDate": { + "description": "Effective date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "expirationDate": { + "description": "Expiration date.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "participants": { + "description": "Participants or signer of the agreement.", + "type": "array", + "items": { + "$ref": "#/definitions/Participants" + } + }, + "status": { + "description": "The agreement status", + "type": "string", + "readOnly": true + } + } + }, + "Participants": { + "description": "Details about the participant or signer.", + "properties": { + "status": { + "description": "The signing status", + "type": "string", + "readOnly": true + }, + "statusDate": { + "description": "The date when status got changed.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "email": { + "description": "The email address of the participant or signer.", + "type": "string", + "readOnly": true + } + } + }, + "LineOfCredit": { + "description": "Line of credit resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "A line of credit.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/LineOfCreditProperties" + } + } + }, + "LineOfCreditProperties": { + "description": "The properties of the line of credit.", + "properties": { + "creditLimit": { + "description": "The current credit limit.", + "$ref": "#/definitions/Amount", + "readOnly": false + }, + "reason": { + "description": "The reason for the line of credit status when not approved.", + "type": "string", + "readOnly": true + }, + "remainingBalance": { + "description": "Remaining balance.", + "$ref": "#/definitions/Amount", + "readOnly": true + }, + "status": { + "description": "The line of credit status.", + "type": "string", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "status", + "modelAsString": true + } + } + } + }, + "Action": { + "description": "the action the caller allowed to do", + "type": "string", + "readOnly": true + }, + "NotAction": { + "description": "the action the caller doesn't allowed to do", + "type": "string", + "readOnly": true + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2019-10-01-preview." + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "billingAccountNameParameter": { + "name": "billingAccountName", + "in": "path", + "description": "billing Account Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceSectionNameParameter": { + "name": "invoiceSectionName", + "in": "path", + "description": "InvoiceSection Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "enrollmentAccountNameParameter": { + "name": "enrollmentAccountName", + "in": "path", + "description": "Enrollment Account Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "departmentNameParameter": { + "name": "departmentName", + "in": "path", + "description": "Department Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingProfileNameParameter": { + "name": "billingProfileName", + "in": "path", + "description": "Billing Profile Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "updateAutoRenewRequestParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Update auto renew request parameters.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewRequest" + } + }, + "operationIdParameter": { + "name": "operationId", + "in": "path", + "description": "Operation Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingRoleDefinitionNameParameter": { + "name": "billingRoleDefinitionName", + "in": "path", + "description": "role definition id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingRoleAssignmentNameParameter": { + "name": "billingRoleAssignmentName", + "in": "path", + "description": "role assignment id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceNameParameter": { + "name": "invoiceName", + "in": "path", + "description": "Invoice Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "productNameParameter": { + "name": "productName", + "in": "path", + "description": "Invoice Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingSubscriptionNameParameter": { + "name": "billingSubscriptionName", + "in": "path", + "description": "Billing Subscription Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "transferNameParameter": { + "name": "transferName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Transfer Name." + }, + "initiateTransferRequestParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Initiate transfer parameters.", + "schema": { + "$ref": "#/definitions/InitiateTransferRequest" + } + }, + "acceptTransferRequestParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Accept transfer parameters.", + "schema": { + "$ref": "#/definitions/AcceptTransferRequest" + } + }, + "agreementNameParameter": { + "name": "agreementName", + "in": "path", + "description": "Agreement Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "transactionNameParameter": { + "name": "transactionName", + "in": "path", + "description": "Transaction name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json new file mode 100644 index 000000000000..2e6b57c40b50 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName", + "body": { + "properties": { + "value": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json new file mode 100644 index 000000000000..f73ffa2b0feb --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingAccount.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "parameters": { + "principalId": "00000000-0000-0000-0000-000000000000", + "billingRoleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Billing/billingRoleDefinition/10000000-aaaa-bbbb-cccc-100000000000" + } + }, + "responses": { + "201": { + "body": { + "value": [ + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "properties": { + "createdOn": "2018-06-21T21:58:19.9073876+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "properties": { + "createdOn": "2018-06-22T06:03:51.430844+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "principalId": "129db794-64a5-44e0-9838-002780478959", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "properties": { + "createdOn": "2018-07-06T05:52:57.1463874+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "principalId": "d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "properties": { + "createdOn": "2018-07-10T22:04:33.8309285+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "principalId": "c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json new file mode 100644 index 000000000000..f3995e9ec50f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToBillingProfile.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "parameters": { + "principalId": "00000000-0000-0000-0000-000000000000", + "billingRoleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.Billing/billingRoleDefinition/10000000-aaaa-bbbb-cccc-100000000000" + } + }, + "responses": { + "201": { + "body": { + "value": [ + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json new file mode 100644 index 000000000000..6fe07a1e5fb1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddRoleAssignmentToInvoiceSection.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "principalId": "00000000-0000-0000-0000-000000000000", + "billingRoleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Billing/billingRoleDefinition/10000000-aaaa-bbbb-cccc-100000000000" + } + }, + "responses": { + "201": { + "body": { + "value": [ + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json new file mode 100644 index 000000000000..7866e1f28e47 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressInvalid.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "address": { + "addressLine1": "55 110th Ave NE", + "city": "bellevue", + "region": "wa", + "postalCode": "98004", + "country": "us" + } + }, + "responses": { + "200": { + "body": { + "status": "Invalid", + "suggestedAddresses": [ + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "100 110th Ave NE", + "postalCode": "98004" + }, + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "102 110th Ave NE", + "postalCode": "98004-5804" + }, + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "104 110th Ave NE", + "postalCode": "98004-5804" + } + ], + "validationMessage": "Invalid address" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json new file mode 100644 index 000000000000..f22d87b8f0d6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AddressValid.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "address": { + "addressLine1": "555 110th Ave NE", + "city": "bellevue", + "region": "wa", + "postalCode": "98004", + "country": "us" + } + }, + "responses": { + "200": { + "body": { + "status": "Valid", + "suggestedAddresses": [ + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "555 110th Ave NE", + "postalCode": "98004-5124" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json new file mode 100644 index 000000000000..abce069f346b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "agreementName": "{agreementName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/{agreementName}", + "name": "{agreementName}", + "type": "Microsoft.Billing/agreements", + "properties": { + "agreementLink": "https://agreementuri1.com", + "effectiveDate": "2018-12-05T00:00:00Z", + "expirationDate": "2018-12-05T00:00:00Z", + "participants": [ + { + "status": "Accepted", + "statusDate": "2018-11-01T00:00:00Z", + "email": "abc@contoso.com" + }, + { + "status": "Declined", + "statusDate": "2018-11-02T00:00:00Z", + "email": "xyz@contoso.com" + } + ], + "status": "Published" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json new file mode 100644 index 000000000000..c0e0d298c675 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/Agreement1", + "name": "Agreement1", + "type": "Microsoft.Billing/agreements", + "properties": { + "agreementLink": "https://agreementuri1.com", + "effectiveDate": "2018-12-05T00:00:00Z", + "expirationDate": "2018-12-05T00:00:00Z", + "participants": [ + { + "status": "Accepted", + "statusDate": "2018-11-01T00:00:00Z", + "email": "abc@contoso.com" + }, + { + "status": "Declined", + "statusDate": "2018-11-02T00:00:00Z", + "email": "xtz@contoso.com" + } + ], + "status": "Published" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/Agreement2", + "name": "Agreement2", + "type": "Microsoft.Billing/agreements", + "properties": { + "agreementLink": "https://agreementuri2.com", + "effectiveDate": "2018-12-05T00:00:00Z", + "expirationDate": "2018-12-05T00:00:00Z", + "participants": [ + { + "status": "Unknown", + "statusDate": "2018-11-01T00:00:00Z", + "email": "abc@contoso.com" + } + ], + "status": "PendingSignature" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json new file mode 100644 index 000000000000..44c3527f48e5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/availableBalance/50000000-0000-0000-0000-000000000000", + "name": "50000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/availableBalance", + "properties": { + "amount": { + "currency": "USD", + "value": 500.00 + } + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccount.json new file mode 100644 index 000000000000..aa49d5ce7f72 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccount.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}", + "name": "{billingAccountName}", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account", + "agreementType": "MicrosoftCustomerAgreement", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json new file mode 100644 index 000000000000..975e02fc529a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "periodStartDate": "2018-01-01", + "periodEndDate": "2018-06-30", + "$filter": "invoicePeriodStartDate le 2018-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoices/1383723", + "name": "1383723", + "type": "Microsoft.Billing/invoices", + "properties": { + "dueDate": "2018-01-16T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "Due", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-01-01T17:32:28Z", + "invoicePeriodEndDate": "2018-01-15T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoices/1383724", + "name": "1383724", + "type": "Microsoft.Billing/invoices", + "properties": { + "dueDate": "2018-03-01T17:32:28Z", + "invoiceDate": "2018-02-01T17:32:28Z", + "status": "PastDue", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-02-01T17:32:28Z", + "invoicePeriodEndDate": "2018-02-30T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "VoidNote", + "url": "https://microsoft.com/voidNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json new file mode 100644 index 000000000000..26c530ba03ed --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountPermissionsList.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000015", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000009", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "20000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000008", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000010", + "30000000-aaaa-bbbb-cccc-200000000001" + ], + "notActions": [] + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json new file mode 100644 index 000000000000..c8e641b5a9e9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignment.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingRoleAssignmentName": "{billingRoleAssignmentId}" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json new file mode 100644 index 000000000000..8df315a28b98 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentDelete.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingRoleAssignmentName": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "type": "Microsoft.Billing/roleAssignments", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json new file mode 100644 index 000000000000..40ed0ea73d50 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleAssignmentList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "properties": { + "createdOn": "2018-06-21T21:58:19.9073876+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json new file mode 100644 index 000000000000..61a74831ac7a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinition.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingRoleDefinitionName": "{billingRoleDefinitionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/{billingRoleDefinitionName}", + "name": "{billingRoleDefinitionName}", + "properties": { + "description": "The Owner role gives the user all permissions including access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "20000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json new file mode 100644 index 000000000000..59e5114ee84b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountRoleDefinitionsList.json @@ -0,0 +1,162 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000", + "properties": { + "description": "The Owner role gives the user all permissions including access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "20000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000001", + "name": "10000000-aaaa-bbbb-cccc-100000000001", + "properties": { + "description": "The Contributor role give the user all permissions except access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_contributor" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000002", + "name": "10000000-aaaa-bbbb-cccc-100000000002", + "properties": { + "description": "The Reader role gives the user read only access to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000003", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_reader" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000003", + "name": "10000000-aaaa-bbbb-cccc-100000000003", + "properties": { + "description": "The Signatory role can sign agreements on behalf of the customer.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003" + ], + "notActions": [] + } + ], + "roleName": "signatory" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000004", + "name": "10000000-aaaa-bbbb-cccc-100000000004", + "properties": { + "description": "The Basic Purchaser role gives the user the ability to make purchases by creating new Projects and Billing Groups.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_basic_purchaser" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000005", + "name": "10000000-aaaa-bbbb-cccc-100000000005", + "properties": { + "description": "The Project Creator role gives the user the ability to create new Projects.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006" + ], + "notActions": [] + } + ], + "roleName": "project_creator" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json new file mode 100644 index 000000000000..4d567b59a53a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountWithExpand.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "$expand": "address, invoiceSections, billingProfiles" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}", + "name": "{billingAccountName}", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 1", + "agreementType": "MicrosoftCustomerAgreement", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address", + "addressLine2": "Test Address", + "addressLine3": "Test Address", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000", + "billingProfiles": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "name": "11000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile1", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + } + ] + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001", + "name": "11000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile2", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2", + "name": "invoiceSectionId2", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName2" + } + } + ] + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json new file mode 100644 index 000000000000..8ae24f9be32b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsList.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 1", + "agreementType": "MicrosoftCustomerAgreement", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "name": "10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 2", + "agreementType": "MicrosoftCustomerAgreement", + "address": null, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/20000000-0000-0000-0000-000000000002_00000000-0000-0000-0000-000000000000", + "name": "20000000-0000-0000-0000-000000000002_00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 3", + "agreementType": "MicrosoftCustomerAgreement", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json new file mode 100644 index 000000000000..e4c38f61575b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpand.json @@ -0,0 +1,253 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "$expand": "address, billingProfiles, billingProfiles/invoiceSections" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 1", + "agreementType": "MicrosoftCustomerAgreement", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address", + "addressLine2": "Test Address", + "addressLine3": "Test Address", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000", + "billingProfiles": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000", + "name": "11000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile1", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId2", + "name": "invoiceSectionId2", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName2" + } + } + ] + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000001", + "name": "11000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile2", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId11", + "name": "invoiceSectionId11", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName11" + } + } + ] + } + } + ] + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "name": "10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account 2", + "agreementType": "MicrosoftCustomerAgreement", + "address": null, + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000", + "billingProfiles": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004", + "name": "11000000-0000-0000-0000-000000000004", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile3", + "address": { + "companyName": "Contoso Test", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004/invoiceSections/invoiceSectionId3", + "name": "invoiceSectionId3", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName3" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004/invoiceSections/invoiceSectionId4", + "name": "invoiceSectionId4", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName4" + } + } + ] + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005", + "name": "11000000-0000-0000-0000-000000000005", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile4", + "address": { + "companyName": "Contoso Test", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005/invoiceSections/invoiceSectionId5", + "name": "invoiceSectionId5", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName5" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005/invoiceSections/invoiceSectionId6", + "name": "invoiceSectionId6", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName6" + } + } + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json new file mode 100644 index 000000000000..6ffece0e6a18 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountsListWithExpandForEnrollmentDetails.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "$expand": "properties/enrollmentDetails, properties/departments, properties/enrollmentAccounts" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/7645820", + "name": "7645820", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "agreementType": "EnterpriseAgreement", + "address": { + "addressLine1": "Test Address", + "addressLine2": "Test Address", + "addressLine3": "Test Address", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "enrollmentDetails": { + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z", + "currency": "USD", + "channel": "EaDirect", + "language": "en", + "countryCode": "US", + "status": "Active", + "billingCycle": "Monthly", + "policies": { + "accountOwnerViewCharges": true, + "departmentAdminViewCharges": true, + "marketplacesEnabled": true, + "reservedInstancesEnabled": true + } + }, + "departments": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId2", + "name": "departmentId2", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName2", + "costCenter": "C4", + "status": "Active" + } + } + ], + "enrollmentAccounts": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId0", + "name": "accountId0", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId1", + "name": "accountId1", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName1", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId2", + "name": "accountId2", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName2", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json new file mode 100644 index 000000000000..0d6b2db613f9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfile.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "name": "{billingProfileName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "Billing Profile1", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json new file mode 100644 index 000000000000..d4f6696d9ce1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilePermissionsList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000015", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000009", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "20000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000008", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000010", + "30000000-aaaa-bbbb-cccc-200000000001" + ], + "notActions": [] + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json new file mode 100644 index 000000000000..9ad68a7d9234 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignment.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "properties": { + "createdOn": "2018-06-21T21:58:19.9073876+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json new file mode 100644 index 000000000000..9ad68a7d9234 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentDelete.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "properties": { + "createdOn": "2018-06-21T21:58:19.9073876+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json new file mode 100644 index 000000000000..53d8c28df1f1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleAssignmentList.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "properties": { + "createdOn": "2018-06-21T21:58:19.9073876+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "properties": { + "createdOn": "2018-06-22T06:03:51.430844+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "principalId": "129db794-64a5-44e0-9838-002780478959", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "properties": { + "createdOn": "2018-07-06T05:52:57.1463874+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "principalId": "d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "properties": { + "createdOn": "2018-07-10T22:04:33.8309285+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "00000000-0000-0000-0000-000000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "principalId": "c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json new file mode 100644 index 000000000000..97a3427d47df --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinition.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "billingRoleDefinitionName": "{billingRoleDefinitionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/{billingRoleDefinitionName}", + "name": "{billingRoleDefinitionName}", + "properties": { + "description": "The Owner role gives the user all permissions including access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "20000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json new file mode 100644 index 000000000000..b89181677bbd --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileRoleDefinitionsList.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000", + "properties": { + "description": "The Owner role gives the user all permissions including access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "20000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "billing_profile_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000001", + "name": "10000000-aaaa-bbbb-cccc-100000000001", + "properties": { + "description": "The Contributor role give the user all permissions except access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "billing_profile_contributor" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json new file mode 100644 index 000000000000..9353a69265a5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfileWithExpand.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "name": "{billingProfileName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "Billing Profile1", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccountName.json new file mode 100644 index 000000000000..5fba4a2affa6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListByBillingAccountName.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "name": "11000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile1", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001", + "name": "11000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile2", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json new file mode 100644 index 000000000000..d102cee86f2a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProfilesListWithExpand.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "name": "11000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile1", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + } + ] + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001", + "name": "11000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile2", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345", + "invoiceSections": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2", + "name": "invoiceSectionId2", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSectionName2" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json new file mode 100644 index 000000000000..29cdfa58259d --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingProperty.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default", + "name": "default", + "type": "Microsoft.Billing/billingProperty", + "properties": { + "billingTenantId": "90000000-0000-0000-0000-000000000011", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000", + "billingAccountDisplayName": "My Account", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "costCenter": "1010", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoice section", + "productId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000/products/44000000-0000-0000-0000-000000000000", + "productName": "Standard Dev", + "skuId": "0001", + "skuDescription": "Microsoft Azure Standard" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json new file mode 100644 index 000000000000..53085fa9e076 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}", + "name": "{billingSubscriptionName}", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My Subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json new file mode 100644 index 000000000000..7fc83335da39 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000000", + "name": "90000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000001", + "name": "90000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Test subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 1000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 400 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000002", + "name": "90000000-0000-0000-0000-000000000002", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Dev Subscription", + "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 6000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 900 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json new file mode 100644 index 000000000000..3ef1114f5940 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId1", + "name": "billingSubscriptionId1", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId2", + "name": "billingSubscriptionId2", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Test subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 1000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 400 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId3", + "name": "billingSubscriptionId3", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Dev Subscription", + "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 6000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 900 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json new file mode 100644 index 000000000000..8530f0fd90a6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId1", + "name": "billingSubscriptionId1", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "My subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 5000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 600 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId2", + "name": "billingSubscriptionId2", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Test subscription", + "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 1000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 400 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId3", + "name": "billingSubscriptionId3", + "type": "Microsoft.Billing/billingSubscriptions", + "properties": { + "displayName": "Dev Subscription", + "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3", + "subscriptionBillingStatus": "Active", + "lastMonthCharges": { + "currency": "USD", + "value": 6000.00 + }, + "monthToDateCharges": { + "currency": "USD", + "value": 900 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json new file mode 100644 index 000000000000..a8ef6f9eb25e --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CancelTransfer.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "canceledBy": "user@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json new file mode 100644 index 000000000000..dbc4fe70d1d2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateBillingProfile.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "parameters": { + "displayName": "Finance", + "address": { + "firstName": "Test", + "lastName": "User", + "addressLine1": "1 Microsoft Way", + "city": "Redmond", + "postalCode": "98052", + "region": "WA", + "country": "US" + }, + "enabledAzurePlans": [ + { + "skuId": "0001" + }, + { + "skuId": "0002" + } + ], + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-07-31", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/billingProfileId1", + "name": "billingProfileId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "Finance", + "address": { + "firstName": "Test", + "lastName": "User", + "addressLine1": "1 Microsoft Way", + "city": "Redmond", + "postalCode": "98052", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json new file mode 100644 index 000000000000..a47f90decfae --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/CreateInvoiceSection.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "displayName": "invoiceSection1" + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-07-31", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection1" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json new file mode 100644 index 000000000000..b29b036b64a1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DeclineTransfer.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "Declined", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json new file mode 100644 index 000000000000..f63b9c9d1366 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Department.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "departmentName": "{departmentName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}", + "name": "{departmentName}", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "Test department", + "costCenter": "C1", + "status": "Active" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json new file mode 100644 index 000000000000..af95f0b8bd81 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentWithExpand.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "departmentName": "{departmentName}", + "$expand": "properties/enrollmentAccounts" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}", + "name": "{departmentName}", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active", + "enrollmentAccounts": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId0", + "name": "accountId0", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId1", + "name": "accountId1", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName1", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountName.json new file mode 100644 index 000000000000..3b3bbfe078f6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountName.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId2", + "name": "departmentId2", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName2", + "costCenter": "C4", + "status": "Active" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountNameWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountNameWithExpand.json new file mode 100644 index 000000000000..18cf8d671a03 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/DepartmentsListByBillingAccountNameWithExpand.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "$expand": "properties/enrollmentAccounts" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active", + "enrollmentAccounts": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId0", + "name": "accountId0", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId1", + "name": "accountId1", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName1", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + ] + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId2", + "name": "departmentId2", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName2", + "costCenter": "C4", + "status": "Active", + "enrollmentAccounts": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId2", + "name": "accountId2", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName2", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId5", + "name": "accountId5", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName5", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json new file mode 100644 index 000000000000..af82c205f36c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ElevateInvoiceSection.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "204": {} + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json new file mode 100644 index 000000000000..a70aebe49bc9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccount.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "enrollmentAccountName": "{enrollmentAccountName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}", + "name": "{enrollmentAccountName}", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json new file mode 100644 index 000000000000..cb5a33d1a34f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountWithExpand.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "enrollmentAccountName": "{enrollmentAccountName}", + "$expand": "properties/department" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}", + "name": "{enrollmentAccountName}", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z", + "department": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + } + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountName.json new file mode 100644 index 000000000000..083e08c85171 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountName.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId0", + "name": "accountId0", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId1", + "name": "accountId1", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName1", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId2", + "name": "accountId2", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName2", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountNameWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountNameWithExpand.json new file mode 100644 index 000000000000..b0d7ebb49ec3 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/EnrollmentAccountsListByBillingAccountNameWithExpand.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "$expand": "properties/department" + }, + "responses": { + "200": { + "body": { + "nextLink": "Link to next page", + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId0", + "name": "accountId0", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName0", + "costCenter": "C0", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z", + "department": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + } + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId1", + "name": "accountId1", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName1", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId2", + "name": "accountId2", + "type": "Microsoft.Billing/enrollmentAccounts", + "properties": { + "accountName": "AccountName2", + "costCenter": "C4", + "status": "Active", + "startDate": "2018-05-01T17:32:28Z", + "endDate": "2019-05-31T17:32:28Z", + "department": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1", + "name": "departmentId1", + "type": "Microsoft.Billing/departments", + "properties": { + "departmentName": "departmentName1", + "costCenter": "C1", + "status": "Active" + } + } + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json new file mode 100644 index 000000000000..54bd3b29282e --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetRecipientTransfer.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json new file mode 100644 index 000000000000..8cd4ba588f44 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/GetTransfer.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json new file mode 100644 index 000000000000..ba785726b009 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/IncreaseLineOfCreditBySubscription.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "subscriptionId": "{subscriptionId}", + "parameters": { + "properties": { + "creditLimit": { + "value": 20000.00 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default", + "name": "default", + "type": "Microsoft.Billing/lineOfCredit", + "properties": { + "creditLimit": { + "currency": "USD", + "value": 20000.00 + }, + "reason": null, + "remainingBalance": { + "currency": "USD", + "value": 6000.00 + }, + "status": "Approved" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/44000000-0000-0000-0000-000000000000?api-version=2019-10-01-preview", + "Retry-After": "60", + "OData-EntityId": "44000000-0000-0000-0000-000000000000" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json new file mode 100644 index 000000000000..fb9872e0ba9f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "body": { + "properties": { + "recipientEmailId": "user@contoso.com" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json new file mode 100644 index 000000000000..f36a150602d0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceName": "{invoiceName}" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}", + "name": "{invoiceName}", + "type": "Microsoft.Billing/invoices", + "properties": { + "dueDate": "2018-01-16T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "Due", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-01-01T17:32:28Z", + "invoicePeriodEndDate": "2018-01-15T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + }, + { + "kind": "Receipt", + "url": "https://microsoft.com/taxDoc.pdf" + }, + { + "kind": "CreditNote", + "url": "https://microsoft.com/creditNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json new file mode 100644 index 000000000000..90367f326204 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSection.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "name": "{invoiceSectionName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection1" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json new file mode 100644 index 000000000000..173d621d8994 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionPermissionsList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000015", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000009", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "20000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000008", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000010", + "30000000-aaaa-bbbb-cccc-200000000001" + ], + "notActions": [] + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json new file mode 100644 index 000000000000..b47ac8409fe6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignment.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json new file mode 100644 index 000000000000..b47ac8409fe6 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentDelete.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingRoleAssignmentName": "{billingRoleAssignmentName}" + }, + "responses": { + "200": { + "body": { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json new file mode 100644 index 000000000000..81fa51a8027c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "200": { + "value": [ + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "properties": { + "createdOn": "2018-06-21T21:34:12.2363515+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "", + "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "properties": { + "createdOn": "2018-06-21T21:58:19.9073876+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "46b831ec-42b2-4f1a-8b54-3fd5ff9d6aa1", + "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47", + "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "properties": { + "createdOn": "2018-06-22T06:03:51.430844+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000002_129db794-64a5-44e0-9838-002780478959", + "principalId": "129db794-64a5-44e0-9838-002780478959", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "properties": { + "createdOn": "2018-07-06T05:52:57.1463874+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000001_d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "principalId": "d7b03fbc-ecd9-49b8-8e38-285b75eaa8f7", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + }, + { + "id": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "properties": { + "createdOn": "2018-07-10T22:04:33.8309285+00:00", + "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f", + "createdByPrincipalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47", + "name": "10000000-aaaa-bbbb-cccc-100000000000_c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "principalId": "c4f54fd2-d920-4c49-9b4d-9f09387b881c", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}" + }, + "type": "Microsoft.Billing/billingRoleAssignments" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json new file mode 100644 index 000000000000..945da1be3053 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinition.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingRoleDefinitionName": "{billingRoleDefinitionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/{billingRoleDefinitionName}", + "name": "{billingRoleDefinitionName}", + "properties": { + "description": "The Owner role gives the user all permissions including access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "20000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "commerce_root_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json new file mode 100644 index 000000000000..a38965fe088c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleDefinitionsList.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000000", + "name": "10000000-aaaa-bbbb-cccc-100000000000", + "properties": { + "description": "The Owner role gives the user all permissions including access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000000", + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "20000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000000", + "40000000-aaaa-bbbb-cccc-200000000000", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "project_owner" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000001", + "name": "10000000-aaaa-bbbb-cccc-100000000001", + "properties": { + "description": "The Contributor role give the user all permissions except access management rights to the Commerce Root.", + "permissions": [ + { + "actions": [ + "10000000-aaaa-bbbb-cccc-200000000008", + "10000000-aaaa-bbbb-cccc-200000000001", + "10000000-aaaa-bbbb-cccc-200000000002", + "10000000-aaaa-bbbb-cccc-200000000003", + "10000000-aaaa-bbbb-cccc-200000000006", + "10000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000009", + "20000000-aaaa-bbbb-cccc-200000000002", + "30000000-aaaa-bbbb-cccc-200000000015", + "30000000-aaaa-bbbb-cccc-200000000004", + "30000000-aaaa-bbbb-cccc-200000000007", + "30000000-aaaa-bbbb-cccc-200000000001", + "30000000-aaaa-bbbb-cccc-200000000010", + "40000000-aaaa-bbbb-cccc-200000000007", + "40000000-aaaa-bbbb-cccc-200000000006", + "40000000-aaaa-bbbb-cccc-200000000008" + ], + "notActions": [] + } + ], + "roleName": "project_contributor" + }, + "type": "Microsoft.Billing/billingRoleDefinitions" + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountName.json new file mode 100644 index 000000000000..d4da6f96e6f8 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountName.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "name": "22000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000011", + "name": "22000000-0000-0000-0000-000000000011", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection2" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json new file mode 100644 index 000000000000..c421316a219e --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "name": "22000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection1" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json new file mode 100644 index 000000000000..c62128686bf9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "periodStartDate": "2018-01-01", + "periodEndDate": "2018-06-30", + "$filter": "invoicePeriodStartDate le 2018-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/1383723", + "name": "1383723", + "type": "Microsoft.Billing/invoices", + "properties": { + "dueDate": "2018-01-16T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "Due", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-01-01T17:32:28Z", + "invoicePeriodEndDate": "2018-01-15T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + }, + { + "kind": "Receipt", + "url": "https://microsoft.com/taxDoc.pdf" + }, + { + "kind": "CreditNote", + "url": "https://microsoft.com/creditNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/1383724", + "name": "1383724", + "type": "Microsoft.Billing/invoices", + "properties": { + "dueDate": "2018-03-01T17:32:28Z", + "invoiceDate": "2018-01-01T17:32:28Z", + "status": "PastDue", + "amountDue": { + "currency": "USD", + "value": 2000.00 + }, + "billedAmount": { + "currency": "USD", + "value": 2000.00 + }, + "invoicePeriodStartDate": "2018-02-01T17:32:28Z", + "invoicePeriodEndDate": "2018-02-30T17:32:28Z", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso Operations Billing", + "purchaseOrderNumber": "123456", + "documents": [ + { + "kind": "Invoice", + "url": "https://microsoft.com/invoice.pdf" + }, + { + "kind": "Receipt", + "url": "https://microsoft.com/taxDoc.pdf" + }, + { + "kind": "CreditNote", + "url": "https://microsoft.com/creditNote.pdf" + } + ], + "payments": [ + { + "date": "2018-01-14T17:32:28Z", + "paymentType": "credited", + "amount": { + "currency": "USD", + "value": 2000.00 + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json new file mode 100644 index 000000000000..8e1fb4a25ff5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/LineOfCreditBySubscription.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "subscriptionId": "{subscriptionId}" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingAccounts/default/lineOfCredit/default", + "name": "default", + "type": "Microsoft.Billing/lineOfCredit", + "properties": { + "creditLimit": { + "currency": "USD", + "value": 20000.00 + }, + "reason": null, + "remainingBalance": { + "currency": "USD", + "value": 6000.00 + }, + "status": "Approved" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json new file mode 100644 index 000000000000..f74de2bc4fbe --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListRecipientTransfers.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "ReservedInstance", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json new file mode 100644 index 000000000000..822ff5b39af5 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ListTransfers.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json new file mode 100644 index 000000000000..1554edd24c37 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "4/2020", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + } + ] + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json new file mode 100644 index 000000000000..30b98ac03539 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "4/2020", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + } + ] + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json new file mode 100644 index 000000000000..8ac6f690aa95 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default", + "name": "default", + "type": "Microsoft.Billing/policies", + "properties": { + "marketplacePurchases": "Allowed", + "reservationPurchases": "Allowed", + "viewCharges": "SubscriptionOwner", + "freeMarketplacePurchases": "Allowed" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json new file mode 100644 index 000000000000..de5d61a41080 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "invoiceName": "{invoiceName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "Retry-After": "60", + "OData-EntityId": "45000000-0000-0000-0000-000000000000" + } + }, + "200": { + "body": { + "url": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "expiryTime": "2018-07-21T17:32:28Z" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json new file mode 100644 index 000000000000..defd285b2437 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}", + "name": "{productName}", + "type": "Microsoft.Billing/products", + "properties": { + "productTypeId": "A12345", + "productType": "Subscription", + "displayName": "AIP Dev", + "status": "Active", + "purchaseDate": "2018-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json new file mode 100644 index 000000000000..f644c52ce463 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "productName": "{productName}", + "body": { + "autoRenew": "false" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "endDate": "2018-05-01T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json new file mode 100644 index 000000000000..b8e1fdd126b2 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "body": { + "autoRenew": "false" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "endDate": "2018-05-01T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json new file mode 100644 index 000000000000..6207a353686a --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/products", + "properties": { + "productTypeId": "A12345", + "productType": "Reservation", + "displayName": "Eng Reservation (1a13s21awe)", + "status": "Active", + "purchaseDate": "2018-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "billingFrequency": "OneTime", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/products", + "properties": { + "productTypeId": "A12345", + "productType": "Azure subscription", + "displayName": "Engineering Email", + "status": "Active", + "purchaseDate": "2018-04-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "billingFrequency": "Monthly", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json new file mode 100644 index 000000000000..c3ca242cb001 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/products", + "properties": { + "productTypeId": "A12345", + "productType": "Reservation", + "displayName": "Eng Reservation (1a13s21awe)", + "status": "Active", + "purchaseDate": "2018-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "billingFrequency": "OneTime", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/10000000-0000-0000-0000-000000000001", + "name": "10000000-0000-0000-0000-000000000001", + "type": "Microsoft.Billing/products", + "properties": { + "productTypeId": "A12345", + "productType": "Azure subscription", + "displayName": "Engineering Email", + "status": "Active", + "purchaseDate": "2018-04-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 500.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json new file mode 100644 index 000000000000..1817b8de94b1 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "subscriptionId": "7800000000-0000-0000-0000-0000000000009456", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/21000000-0000-0000-0000-000000000000", + "name": "21000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json new file mode 100644 index 000000000000..1b1c2f8e1948 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/65000000-0000-0000-0000-000000000000", + "name": "65000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing", + "subscriptionId": "82000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json new file mode 100644 index 000000000000..d312d59e038c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30", + "$filter": "properties/kind eq 'Reservation'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-04-23T00:00:00Z", + "invoice": "2344233", + "orderName": "Contoso Reserved", + "orderId": "6d8e7ed9-d3be-48b0-8c7a-e19246a6d30c", + "productDescription": "Standard D1, US West 3", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "quantity": 4, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/82000000-0000-0000-0000-000000000000", + "name": "82000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "reservation", + "date": "2018-05-05T00:00:00Z", + "invoice": "Pending", + "orderName": "Test Reserved", + "orderId": "1c24006f-8350-4315-ad8f-6d11180448f9", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 6000.00 + }, + "quantity": 5, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "subscriptionName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json new file mode 100644 index 000000000000..be6f493a2e22 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "transactionName": "{transactionName}" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/{transactionName}", + "name": "{transactionName}", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Reserved VM Instance", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + } + } +} \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json new file mode 100644 index 000000000000..9b316ba1f706 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Dev Support", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-04-01T00:00:00Z", + "invoice": "pending", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Azure subscription", + "productDescription": "Send grid Gold", + "transactionType": "Usage Charge", + "transactionAmount": { + "currency": "USD", + "value": 50.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json new file mode 100644 index 000000000000..f4750f4d600b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "VM Instance", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-04-01T00:00:00Z", + "invoice": "pending", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "VM Instance", + "productDescription": "Standard Support", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 50.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "billingProfileDisplayName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json new file mode 100644 index 000000000000..7ef4b317ea35 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/41000000-0000-0000-0000-000000000000", + "name": "41000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-05-01T00:00:00Z", + "invoice": "2344233", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "Reserved VM Instance", + "productDescription": "Standard D1, US West 3", + "transactionType": "Purchase", + "transactionAmount": { + "currency": "USD", + "value": 5000.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + }, + { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/51000000-0000-0000-0000-000000000000", + "name": "51000000-0000-0000-0000-000000000000", + "type": "Microsoft.Billing/transactions", + "properties": { + "kind": "all", + "date": "2018-04-01T00:00:00Z", + "invoice": "pending", + "productFamily": "Storage", + "productTypeId": "A12345", + "productType": "VM Instance", + "productDescription": "Standard Support", + "transactionType": "Cancel", + "transactionAmount": { + "currency": "USD", + "value": 50.00 + }, + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferBillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferBillingSubscription.json new file mode 100644 index 000000000000..64c231d3945f --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferBillingSubscription.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "billingSubscriptionName": "Test subscription" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}/transfer/operationResults/10000000-0000-0000-0000-000000000001?api-version=2019-10-01-preview", + "Retry-After": "30" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json new file mode 100644 index 000000000000..6f12595407f9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransferProduct.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}/products/{productName}", + "name": "{productName}", + "type": "Microsoft.Billing/products", + "properties": { + "productTypeId": "A12345", + "productType": "Subscription", + "displayName": "Test Product", + "status": "Active", + "purchaseDate": "2018-05-01T17:32:28Z", + "lastCharge": { + "currency": "USD", + "value": 5000.00 + }, + "lastChargeDate": "2018-06-15T17:32:28Z", + "billingFrequency": "Monthly", + "quantity": 4, + "skuId": "0001", + "skuDescription": "Enterprise Agreement Development", + "availabilityId": "AvailabilityId1", + "parentProductId": "45000000-0000-0000-0000-0000000001242", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "invoiceSectionDisplayName": "Contoso operations invoiceSection", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", + "billingProfileDisplayName": "Contoso operations billing" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/44000000-0000-0000-0000-000000000000?api-version=2019-10-01-preview", + "Retry-After": "60", + "OData-EntityId": "44000000-0000-0000-0000-000000000000" + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json new file mode 100644 index 000000000000..7217cbd1c847 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingAccount.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "parameters": { + "properties": { + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "1 Microsoft Way", + "city": "Redmond", + "postalCode": "98052", + "region": "WA", + "country": "US" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationStatus/65e1f2bf-c31c-4b89-a599-25d9d4172af9?api-version=2019-10-01-preview", + "Retry-After": "10" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}", + "name": "{billingAccountName}", + "type": "Microsoft.Billing/billingAccounts", + "properties": { + "displayName": "Test Account", + "agreementType": "MicrosoftCustomerAgreement", + "customerType": "Enterprise", + "organizationId": "00000000-0000-0000-0000-000000000000" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json new file mode 100644 index 000000000000..e961486ce376 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateBillingProfile.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "parameters": { + "properties": { + "displayName": "BillingProfile11", + "poNumber": "ABC12345" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "/providers/Microsoft.Billing/billingOperations/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-05-31-preview", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "name": "{billingProfileName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles", + "properties": { + "displayName": "BillingProfile11", + "address": { + "companyName": "Contoso", + "firstName": "Test", + "lastName": "User", + "addressLine1": "Test Address1", + "addressLine2": "Test Address2", + "addressLine3": "Test Address3", + "city": "City", + "postalCode": "00000", + "region": "WA", + "country": "US" + }, + "currency": "USD", + "enabledAzurePlans": [ + { + "skuId": "0001", + "skuDescription": "Microsoft Azure Dev/Test" + }, + { + "skuId": "0002", + "skuDescription": "Microsoft Azure Standard" + } + ], + "invoiceDay": 5, + "invoiceEmailOptIn": true, + "poNumber": "ABC12345" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json new file mode 100644 index 000000000000..cb8d162ad843 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdateInvoiceSection.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "parameters": { + "properties": { + "displayName": "invoiceSection1" + } + } + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2019-10-01-preview", + "Retry-After": "60" + } + }, + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}", + "name": "{invoiceSectionName}", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections", + "properties": { + "displayName": "invoiceSection1" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json new file mode 100644 index 000000000000..781cd76ba021 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "eTag": "\"1d34d012214157f\"", + "parameters": { + "properties": { + "marketplacePurchases": "Allowed", + "reservationPurchases": "NotAllowed", + "viewCharges": "SubscriptionOwner", + "freeMarketplacePurchases": "Allowed" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default", + "name": "default", + "type": "Microsoft.Billing/policies", + "properties": { + "marketplacePurchases": "Allowed", + "reservationPurchases": "NotAllowed", + "viewCharges": "SubscriptionOwner", + "freeMarketplacePurchases": "Allowed" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json new file mode 100644 index 000000000000..4d64f82de2b0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferFailure.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": false, + "errorDetails": { + "code": "ProductTypeNotSupported", + "message": "Product '{productName}' is not allowed to be transferred." + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json new file mode 100644 index 000000000000..0fe8a40992bf --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateProductTransferSuccess.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "productName": "{productName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": true + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json new file mode 100644 index 000000000000..40c754ee5b50 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferFailure.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": false, + "errorDetails": { + "code": "SubscriptionNotActive", + "message": "Invoice Sections can only be changed for active subscriptions." + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json new file mode 100644 index 000000000000..3c0e5e220b3c --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ValidateSubscriptionTransferSuccess.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceSectionName": "{invoiceSectionName}", + "billingSubscriptionName": "{billingSubscriptionName}", + "parameters": { + "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}", + "destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}" + } + }, + "responses": { + "200": { + "body": { + "isTransferEligible": true + } + } + } +} diff --git a/specification/billing/resource-manager/readme.md b/specification/billing/resource-manager/readme.md index 06b504538849..8168c318b6ef 100644 --- a/specification/billing/resource-manager/readme.md +++ b/specification/billing/resource-manager/readme.md @@ -26,7 +26,16 @@ These are the global settings for the Billing API. ``` yaml openapi-type: arm -tag: package-2018-11-preview +tag: package-2019-10-preview +``` + +### Tag: package-2019-10-preview + +These settings apply only when `--tag=package-2019-10-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-10-preview' +input-file: +- Microsoft.Billing/preview/2019-10-01-preview/billing.json ``` ### Tag: package-2018-11-preview @@ -123,12 +132,26 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-billing ``` yaml $(java) && $(multiapi) batch: + - tag: package-2019-10-preview - tag: package-2018-11-preview - tag: package-2018-03-preview - tag: package-2017-04-preview - tag: package-2017-02-preview ``` +### Tag: package-2019-10-preview and java + +These settings apply only when `--tag=package-2019-10-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2019-10-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.billing.v2019_10_01_preview + output-folder: $(azure-libraries-for-java-folder)/billing/resource-manager/v2019_10_01_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2018-11-preview and java These settings apply only when `--tag=package-2018-11-preview --java` is specified on the command line. From b284504b53ed3e6c258f531d0695f8ad4f8cd667 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 17 Jul 2019 19:35:59 -0700 Subject: [PATCH 05/31] Rolled back the changes in 2018-11-01-preview version Rolled back the changes in 2018-11-01-preview version --- .../preview/2018-11-01-preview/billing.json | 337 +----------------- .../examples/RecurringProduct.json | 43 --- ...RecurringProductsListByBillingAccount.json | 76 ---- ...RecurringProductsListByBillingProfile.json | 77 ---- ...RecurringProductsListByInvoiceSection.json | 77 ---- 5 files changed, 1 insertion(+), 609 deletions(-) delete mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json delete mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json delete mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json delete mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 25625001e723..9d0f890cf182 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -3612,177 +3612,6 @@ } } } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/recurringProducts": { - "get": { - "tags": [ - "RecurringProducts" - ], - "operationId": "RecurringProducts_ListByBillingAccountName", - "description": "Lists recurring products by billing account name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" - }, - "x-ms-examples": { - "RecurringProductsListByBillingAccount": { - "$ref": "./examples/RecurringProductsListByBillingAccount.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/billingAccountNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/RecurringProductsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/recurringProducts": { - "get": { - "tags": [ - "RecurringProducts" - ], - "operationId": "RecurringProducts_ListByBillingProfileName", - "description": "Lists recurring products by invoice section name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" - }, - "x-ms-examples": { - "RecurringProductsListByBillingProfile": { - "$ref": "./examples/RecurringProductsListByBillingProfile.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/billingAccountNameParameter" - }, - { - "$ref": "#/parameters/billingProfileNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/RecurringProductsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringProducts": { - "get": { - "tags": [ - "RecurringProducts" - ], - "operationId": "RecurringProducts_ListByInvoiceSectionName", - "description": "Lists recurring products by invoice section name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" - }, - "x-ms-examples": { - "RecurringProductsListByInvoiceSection": { - "$ref": "./examples/RecurringProductsListByInvoiceSection.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/billingAccountNameParameter" - }, - { - "$ref": "#/parameters/invoiceSectionNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/RecurringProductsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/recurringProducts/{recurringProductName}": { - "get": { - "tags": [ - "RecurringProducts" - ], - "operationId": "RecurringProducts_Get", - "description": "Get a single recurring product by name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" - }, - "x-ms-examples": { - "RecurringProduct": { - "$ref": "./examples/RecurringProduct.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/billingAccountNameParameter" - }, - { - "$ref": "#/parameters/invoiceSectionNameParameter" - }, - { - "$ref": "#/parameters/recurringProductNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/RecurringProductSummary" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } } }, "definitions": { @@ -5322,162 +5151,6 @@ } } }, - "RecurringProductsListResult": { - "description": "Result of listing recurring products. It contains a list of available recurring products in reverse chronological order by charge date.", - "properties": { - "value": { - "description": "The list of recurring products.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/RecurringProductSummary" - } - }, - "nextLink": { - "description": "The link (url) to the next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "RecurringProductSummary": { - "description": "A recurring product resource.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RecurringProductSummaryProperties", - "title": "Recurring product properties" - } - } - }, - "RecurringProductSummaryProperties": { - "description": "The properties of the recurring product.", - "properties": { - "availabilityId": { - "description": "Availability Id.", - "type": "string", - "readOnly": true - }, - "billingFrequency": { - "description": "Billing frequency ISO code.", - "type": "string", - "readOnly": true - }, - "billingProfileId": { - "description": "Billing profile id to which this charge belongs.", - "type": "string", - "readOnly": true - }, - "billingProfileName": { - "description": "Billing profile name to which this charge belongs.", - "type": "string", - "readOnly": true - }, - "displayName": { - "description": "The display name.", - "type": "string", - "readOnly": true - }, - "endDate": { - "description": "end date.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "invoiceSectionId": { - "description": "Invoice section id to which this charge belongs.", - "type": "string", - "readOnly": true - }, - "invoiceSectionName": { - "description": "Invoice section name to which this charge belongs.", - "type": "string", - "readOnly": true - }, - "lastCharge": { - "description": "Last charge.", - "readOnly": true, - "$ref": "#/definitions/Amount" - }, - "lastChargeDate": { - "description": "The date of the last charge.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "nextCharge": { - "description": "Next charge.", - "readOnly": true, - "$ref": "#/definitions/Amount" - }, - "nextChargeDate": { - "description": "The date of the next charge.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "parentProductId": { - "description": "Parent product Id.", - "type": "string", - "readOnly": true - }, - "productType": { - "description": "The type of product.", - "type": "string", - "readOnly": true - }, - "productTypeId": { - "description": "The product type id.", - "type": "string", - "readOnly": true - }, - "skuId": { - "description": "Sku Id.", - "type": "string", - "readOnly": true - }, - "skuDescription": { - "description": "Sku description.", - "type": "string", - "readOnly": true - }, - "purchaseDate": { - "description": "The date of purchase.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "quantity": { - "description": "The purchased quantity.", - "type": "number", - "readOnly": true - }, - "status": { - "description": "Latest status.", - "type": "string", - "enum": [ - "Active", - "AutoRenew", - "Cancelled", - "Deleted", - "Disabled", - "Expired", - "Expiring", - "PastDue" - ], - "x-ms-enum": { - "name": "StatusType", - "modelAsString": true - } - } - } - }, "ValidateProductTransferEligibilityResult": { "type": "object", "description": "Result of the product transfer eligibility validation.", @@ -6422,7 +6095,7 @@ "productNameParameter": { "name": "productName", "in": "path", - "description": "Product Id.", + "description": "Invoice Id.", "required": true, "type": "string", "x-ms-parameter-location": "method" @@ -6470,14 +6143,6 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" - }, - "recurringProductNameParameter": { - "name": "recurringProductName", - "in": "path", - "description": "Recurring product Id.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" } }, "security": [ diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json deleted file mode 100644 index e771fd449beb..000000000000 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProduct.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "billingAccountName": "{billingAccountName}", - "invoiceSectionName": "{invoiceSectionName}", - "recurringProductName": "{recurringProductName}" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/{invoiceSectionName}/recurringProducts/{recurringProductName}", - "name": "{recurringProductName}", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Subscription", - "displayName": "AIP Dev", - "status": "Active", - "purchaseDate": "2019-05-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 5000.00 - }, - "lastChargeDate": "2019-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 5000.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "P1M", - "quantity": 4, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", - "billingProfileName": "Contoso operations billing" - } - } - } - } -} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json deleted file mode 100644 index 0eda46f0343f..000000000000 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingAccount.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "billingAccountName": "{billingAccountName}" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Bing Maps API for Enterprise", - "displayName": "Bing Maps API", - "status": "Active", - "purchaseDate": "2019-05-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 5000.00 - }, - "lastChargeDate": "2019-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 5000.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "P1M", - "quantity": 4, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", - "billingProfileName": "Contoso operations billing" - } - }, - { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/10000000-0000-0000-0000-000000000001", - "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Azure subscription", - "displayName": "Engineering Email", - "status": "Active", - "purchaseDate": "2018-04-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 2000.00 - }, - "lastChargeDate": "2018-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 2000.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "quantity": 2, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "billingFrequency": "P1M", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", - "billingProfileName": "Contoso operations billing" - } - } - ] - } - } - } -} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json deleted file mode 100644 index 7d0a2a43462a..000000000000 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByBillingProfile.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "billingAccountName": "{billingAccountName}", - "billingProfileName": "{billingProfileName}" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Reservation", - "displayName": "Eng Reservation (1a13s21awe)", - "status": "Active", - "purchaseDate": "2019-05-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 5000.00 - }, - "lastChargeDate": "2019-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 5000.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "P1M", - "quantity": 4, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", - "billingProfileName": "Contoso operations billing" - } - }, - { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/10000000-0000-0000-0000-000000000001", - "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Azure subscription", - "displayName": "Engineering Email", - "status": "Active", - "purchaseDate": "2019-04-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 500.00 - }, - "lastChargeDate": "2019-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 500.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "P1M", - "quantity": 2, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/22000000-0000-0000-0000-000000000000", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", - "billingProfileName": "Contoso operations billing" - } - } - ] - } - } - } -} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json deleted file mode 100644 index ed64cd3ead4b..000000000000 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/RecurringProductsListByInvoiceSection.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "billingAccountName": "{billingAccountName}", - "invoiceSectionName": "{invoiceSectionName}" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Reservation", - "displayName": "Eng Reservation (1a13s21awe)", - "status": "Active", - "purchaseDate": "2019-05-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 5000.00 - }, - "lastChargeDate": "2019-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 5000.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "P1M", - "quantity": 4, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", - "billingProfileName": "Contoso operations billing" - } - }, - { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/InvoiceSections/22000000-0000-0000-0000-000000000000/recurringProducts/10000000-0000-0000-0000-000000000001", - "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/recurringProducts", - "properties": { - "productTypeId": "A12345", - "productType": "Azure subscription", - "displayName": "Engineering Email", - "status": "Active", - "purchaseDate": "2019-04-01T17:32:28Z", - "lastCharge": { - "currency": "USD", - "value": 500.00 - }, - "lastChargeDate": "2019-06-15T17:32:28Z", - "nextCharge": { - "currency": "USD", - "value": 500.00 - }, - "nextChargeDate": "2019-07-15T17:32:28Z", - "billingFrequency": "P1M", - "quantity": 2, - "skuId": "0001", - "skuDescription": "Enterprise Agreement Development", - "availabilityId": "AvailabilityId1", - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}", - "invoiceSectionName": "Contoso operations invoiceSection", - "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", - "billingProfileName": "Contoso operations billing" - } - } - ] - } - } - } -} From d091ef63e162ff04284f601e42e05e485619d7c0 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 17 Jul 2019 19:52:19 -0700 Subject: [PATCH 06/31] Fixed build errors Fixed build errors --- .../InvoiceSectionRoleAssignmentList.json | 2 +- .../PaymentMethodsListByBillingAccount.json | 62 ++++++++++--------- .../PaymentMethodsListByBillingProfile.json | 44 ++++++------- 3 files changed, 56 insertions(+), 52 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json index 81fa51a8027c..a97a36058424 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionRoleAssignmentList.json @@ -7,7 +7,7 @@ }, "responses": { "200": { - "200": { + "body": { "value": [ { "id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json index 1554edd24c37..813e21b7c18b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json @@ -5,37 +5,39 @@ }, "responses": { "200": { - "value": [ - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", - "name": "00000000-0000-0000-0000-000000000055", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "currency": "USD", - "details": "Credits", - "expiration": "4/2020", - "paymentMethodType": "Credits" + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "4/2020", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } } - }, - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", - "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "details": "Check Wire", - "paymentMethodType": "CheckWire" - } - }, - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", - "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "details": "Check Wire", - "paymentMethodType": "CheckWire" - } - } - ] + ] + } } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json index 30b98ac03539..a8fa9fdf0abe 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json @@ -6,28 +6,30 @@ }, "responses": { "200": { - "value": [ - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", - "name": "00000000-0000-0000-0000-000000000055", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "currency": "USD", - "details": "Credits", - "expiration": "4/2020", - "paymentMethodType": "Credits" + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", + "name": "00000000-0000-0000-0000-000000000055", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "currency": "USD", + "details": "Credits", + "expiration": "4/2020", + "paymentMethodType": "Credits" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", + "name": "00000000-0000-0000-0000-000000000026", + "type": "Microsoft.Billing/paymentMethods", + "properties": { + "details": "Check Wire", + "paymentMethodType": "CheckWire" + } } - }, - { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", - "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", - "properties": { - "details": "Check Wire", - "paymentMethodType": "CheckWire" - } - } - ] + ] + } } } } From 3389cad0ae3179e75014afd52823034df4dd65fa Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 17 Jul 2019 23:30:47 -0700 Subject: [PATCH 07/31] Fixed build error Fixed build error --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 9d0f890cf182..7088c1c7e72d 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -5602,9 +5602,8 @@ "readOnly": true }, "expiration": { - "description": "Expiration date.", + "description": "Expiration month and year.", "type": "string", - "format": "date-time", "readOnly": true }, "currency": { From d03bdfdbfa03bc69371ac55b5cea86958a4d79ca Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 17 Jul 2019 23:35:33 -0700 Subject: [PATCH 08/31] Fixed build errors --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 3 ++- .../Microsoft.Billing/preview/2019-10-01-preview/billing.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 7088c1c7e72d..9d0f890cf182 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -5602,8 +5602,9 @@ "readOnly": true }, "expiration": { - "description": "Expiration month and year.", + "description": "Expiration date.", "type": "string", + "format": "date-time", "readOnly": true }, "currency": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 221f030a4bba..0a43da113084 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -5645,9 +5645,8 @@ "readOnly": true }, "expiration": { - "description": "Expiration date.", + "description": "Expiration month and year.", "type": "string", - "format": "date-time", "readOnly": true }, "currency": { From 12a3f4c2d0f0aef8f7f234edb51c3f7827dee716 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Thu, 18 Jul 2019 00:13:17 -0700 Subject: [PATCH 09/31] Update billing.json --- .../Microsoft.Billing/preview/2019-10-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 0a43da113084..93eb6dc125ff 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2698,7 +2698,7 @@ } }, "operationId": "BillingPermissions_ListByBillingProfile", - "description": "Lists all billingPermissions for the caller has for a billing account.", + "description": "Lists all billing permissions for the caller has for a billing account.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" From 0a3d64eb9ccc600dc982bb778223c2f3de38b6de Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Thu, 18 Jul 2019 17:26:57 -0700 Subject: [PATCH 10/31] Updated policy properties Updated policy properties --- .../preview/2019-10-01-preview/billing.json | 17 +++-------------- .../2019-10-01-preview/examples/Policy.json | 5 ++--- .../examples/UpdatePolicy.json | 12 +++++------- 3 files changed, 10 insertions(+), 24 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 93eb6dc125ff..ab7b07b75446 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -5501,10 +5501,11 @@ "description": "The properties of policy.", "properties": { "marketplacePurchases": { - "description": "The marketplace purchases allowed or not.", + "description": "The marketplace purchases are free, allowed or not allowed.", "type": "string", "enum": [ - "Allowed", + "AllAllowed", + "FreeAllowed", "NotAllowed" ], "x-ms-enum": { @@ -5535,18 +5536,6 @@ "name": "ViewChargesPolicy", "modelAsString": true } - }, - "freeMarketplacePurchases": { - "description": "The free marketplace purchases allowed or not.", - "type": "string", - "enum": [ - "Allowed", - "NotAllowed" - ], - "x-ms-enum": { - "name": "FreeMarketplacePurchasesPolicy", - "modelAsString": true - } } } }, diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json index 8ac6f690aa95..33e02e2426ae 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json @@ -11,10 +11,9 @@ "name": "default", "type": "Microsoft.Billing/policies", "properties": { - "marketplacePurchases": "Allowed", + "marketplacePurchases": "AllAllowed", "reservationPurchases": "Allowed", - "viewCharges": "SubscriptionOwner", - "freeMarketplacePurchases": "Allowed" + "viewCharges": "SubscriptionOwner" } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json index 781cd76ba021..ea18b0292787 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json @@ -6,10 +6,9 @@ "eTag": "\"1d34d012214157f\"", "parameters": { "properties": { - "marketplacePurchases": "Allowed", - "reservationPurchases": "NotAllowed", - "viewCharges": "SubscriptionOwner", - "freeMarketplacePurchases": "Allowed" + "marketplacePurchases": "FreeAllowed", + "reservationPurchases": "NotAllowed", + "viewCharges": "SubscriptionOwner" } } }, @@ -20,10 +19,9 @@ "name": "default", "type": "Microsoft.Billing/policies", "properties": { - "marketplacePurchases": "Allowed", + "marketplacePurchases": "FreeAllowed", "reservationPurchases": "NotAllowed", - "viewCharges": "SubscriptionOwner", - "freeMarketplacePurchases": "Allowed" + "viewCharges": "SubscriptionOwner" } } } From aa563c57138bdbbe0239bc88f677eceff72ed420 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 19 Jul 2019 13:50:14 -0700 Subject: [PATCH 11/31] Incorporated review comments Incorporated review comments --- .../Microsoft.Billing/preview/2019-10-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index ab7b07b75446..96feb4b7d284 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -583,7 +583,7 @@ } }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/listInvoiceSectionsWithCreateSubscriptionPermission": { - "get": { + "post": { "tags": [ "InvoiceSections" ], From 0675925dab1500e8aa5738339fa524311272af37 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Mon, 22 Jul 2019 15:25:15 -0700 Subject: [PATCH 12/31] Incorporated review comments Incorporated review comments --- .../2019-10-01-preview/examples/BillingSubscription.json | 2 +- .../examples/BillingSubscriptionsListByBillingAccount.json | 2 +- .../examples/BillingSubscriptionsListByBillingProfile.json | 2 +- .../examples/BillingSubscriptionsListByInvoiceSection.json | 2 +- .../preview/2019-10-01-preview/examples/Product.json | 2 +- .../examples/ProductCancelByBillingAccount.json | 2 +- .../examples/ProductCancelForInvoiceSection.json | 2 +- .../examples/ProductsListByBillingAccount.json | 4 ++-- .../examples/ProductsListByInvoiceSection.json | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json index 53085fa9e076..6442bcb59bfe 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscription.json @@ -11,7 +11,7 @@ "body": { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/{billingSubscriptionName}", "name": "{billingSubscriptionName}", - "type": "Microsoft.Billing/billingSubscriptions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingSubscriptions", "properties": { "displayName": "My Subscription", "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json index 7fc83335da39..f2df4d2c9b1e 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingAccount.json @@ -10,7 +10,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/90000000-0000-0000-0000-000000000000", "name": "90000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/billingSubscriptions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingSubscriptions", "properties": { "displayName": "My subscription", "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json index 3ef1114f5940..b7b98e0caf11 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByBillingProfile.json @@ -11,7 +11,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId1", "name": "billingSubscriptionId1", - "type": "Microsoft.Billing/billingSubscriptions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingSubscriptions", "properties": { "displayName": "My subscription", "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json index 8530f0fd90a6..c2c53fbe18e5 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingSubscriptionsListByInvoiceSection.json @@ -12,7 +12,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions/billinSubscriptionId1", "name": "billingSubscriptionId1", - "type": "Microsoft.Billing/billingSubscriptions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingSubscriptions", "properties": { "displayName": "My subscription", "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json index defd285b2437..8fd3e3f66b12 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Product.json @@ -11,7 +11,7 @@ "body": { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/{productName}", "name": "{productName}", - "type": "Microsoft.Billing/products", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", "properties": { "productTypeId": "A12345", "productType": "Subscription", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json index f644c52ce463..449cd851451b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-10-01-preview", "billingAccountName": "{billingAccountName}", "productName": "{productName}", - "body": { + "parameters": { "autoRenew": "false" } }, diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json index b8e1fdd126b2..615e7ee373d1 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json @@ -5,7 +5,7 @@ "billingProfileName": "{billingProfileName}", "invoiceSectionName": "{invoiceSectionName}", "productName": "{productName}", - "body": { + "parameters": { "autoRenew": "false" } }, diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json index 6207a353686a..501b5d32eba2 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByBillingAccount.json @@ -10,7 +10,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/products", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", "properties": { "productTypeId": "A12345", "productType": "Reservation", @@ -37,7 +37,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/10000000-0000-0000-0000-000000000001", "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/products", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", "properties": { "productTypeId": "A12345", "productType": "Azure subscription", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json index c3ca242cb001..a8ab1eaf3cb5 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductsListByInvoiceSection.json @@ -12,7 +12,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/products", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", "properties": { "productTypeId": "A12345", "productType": "Reservation", @@ -39,7 +39,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products/10000000-0000-0000-0000-000000000001", "name": "10000000-0000-0000-0000-000000000001", - "type": "Microsoft.Billing/products", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/products", "properties": { "productTypeId": "A12345", "productType": "Azure subscription", From cf675f37afa739fa046b09c9623e3e366007cd5e Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Mon, 22 Jul 2019 15:51:31 -0700 Subject: [PATCH 13/31] Updated autorenew request params Updated autorenew request params --- .../preview/2019-10-01-preview/billing.json | 26 ++++++++++--------- .../ProductCancelByBillingAccount.json | 4 ++- .../ProductCancelForInvoiceSection.json | 4 ++- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 96feb4b7d284..9357d36defcd 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2176,7 +2176,13 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "$ref": "#/parameters/updateAutoRenewRequestParameter" + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAutoRenewRequest" + }, + "description": "Parameters supplied to cancel auto renew." } ], "responses": { @@ -2224,7 +2230,13 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "$ref": "#/parameters/updateAutoRenewRequestParameter" + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateAutoRenewRequest" + }, + "description": "Parameters supplied to cancel auto renew." } ], "responses": { @@ -6081,16 +6093,6 @@ "type": "string", "x-ms-parameter-location": "method" }, - "updateAutoRenewRequestParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Update auto renew request parameters.", - "schema": { - "$ref": "#/definitions/UpdateAutoRenewRequest" - } - }, "operationIdParameter": { "name": "operationId", "in": "path", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json index 449cd851451b..be92e5625a09 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json @@ -4,7 +4,9 @@ "billingAccountName": "{billingAccountName}", "productName": "{productName}", "parameters": { - "autoRenew": "false" + "properties": { + "autoRenew": "false" + } } }, "responses": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json index 615e7ee373d1..ee912df53b16 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json @@ -6,7 +6,9 @@ "invoiceSectionName": "{invoiceSectionName}", "productName": "{productName}", "parameters": { - "autoRenew": "false" + "properties": { + "autoRenew": "false" + } } }, "responses": { From f192330d3afec7a8f1283d9a5978e2399bf1b7b2 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Tue, 23 Jul 2019 11:55:59 -0700 Subject: [PATCH 14/31] Updated types for payment methods and available balance Updated types for payment methods and available balance --- .../preview/2019-10-01-preview/billing.json | 36 ++++++++----------- .../examples/AcceptTransfer.json | 2 +- .../AvailableBalanceByBillingProfile.json | 6 ++-- .../examples/InitiateTransfer.json | 2 +- .../PaymentMethodsListByBillingAccount.json | 6 ++-- .../PaymentMethodsListByBillingProfile.json | 4 +-- 6 files changed, 24 insertions(+), 32 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 9357d36defcd..95bc3e9ab5bb 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2314,7 +2314,13 @@ "$ref": "#/parameters/invoiceSectionNameParameter" }, { - "$ref": "#/parameters/initiateTransferRequestParameter" + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InitiateTransferRequest" + }, + "description": "Parameters supplied to initiate the transfer." } ], "responses": { @@ -2474,7 +2480,13 @@ "$ref": "#/parameters/transferNameParameter" }, { - "$ref": "#/parameters/acceptTransferRequestParameter" + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AcceptTransferRequest" + }, + "description": "Parameters supplied to accept the transfer." } ], "responses": { @@ -6149,26 +6161,6 @@ "type": "string", "description": "Transfer Name." }, - "initiateTransferRequestParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Initiate transfer parameters.", - "schema": { - "$ref": "#/definitions/InitiateTransferRequest" - } - }, - "acceptTransferRequestParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Accept transfer parameters.", - "schema": { - "$ref": "#/definitions/AcceptTransferRequest" - } - }, "agreementNameParameter": { "name": "agreementName", "in": "path", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json index 2e6b57c40b50..9ef2290afae4 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-10-01-preview", "transferName": "transferName", - "body": { + "parameters": { "properties": { "value": [ { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json index 44c3527f48e5..9d5dfbeecf45 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AvailableBalanceByBillingProfile.json @@ -7,9 +7,9 @@ "responses": { "200": { "body": { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/availableBalance/50000000-0000-0000-0000-000000000000", - "name": "50000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/availableBalance", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/availableBalance/default", + "name": "default", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/availableBalance", "properties": { "amount": { "currency": "USD", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json index fb9872e0ba9f..df700ca7644f 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InitiateTransfer.json @@ -4,7 +4,7 @@ "billingAccountName": "{billingAccountName}", "billingProfileName": "{billingProfileName}", "invoiceSectionName": "{invoiceSectionName}", - "body": { + "parameters": { "properties": { "recipientEmailId": "user@contoso.com" } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json index 813e21b7c18b..c19b410527cd 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingAccount.json @@ -10,7 +10,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055", "name": "00000000-0000-0000-0000-000000000055", - "type": "Microsoft.Billing/paymentMethods", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", "properties": { "currency": "USD", "details": "Credits", @@ -21,7 +21,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026", "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", "properties": { "details": "Check Wire", "paymentMethodType": "CheckWire" @@ -30,7 +30,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026", "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", "properties": { "details": "Check Wire", "paymentMethodType": "CheckWire" diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json index a8fa9fdf0abe..6506d4a85345 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PaymentMethodsListByBillingProfile.json @@ -11,7 +11,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055", "name": "00000000-0000-0000-0000-000000000055", - "type": "Microsoft.Billing/paymentMethods", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", "properties": { "currency": "USD", "details": "Credits", @@ -22,7 +22,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026", "name": "00000000-0000-0000-0000-000000000026", - "type": "Microsoft.Billing/paymentMethods", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/paymentMethods", "properties": { "details": "Check Wire", "paymentMethodType": "CheckWire" From c018eb9e097a219934be08933636eaa8546f2914 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Tue, 23 Jul 2019 15:36:23 -0700 Subject: [PATCH 15/31] Updated invoice section list examples Updated invoice section list examples --- .../preview/2019-10-01-preview/billing.json | 10 +++++----- ...on => InvoiceSectionsListByBillingProfileName.json} | 0 ...stByBillingProfileNameWithCreateSubPermission.json} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/{InvoiceSectionsListByBillingAccountName.json => InvoiceSectionsListByBillingProfileName.json} (100%) rename specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/{InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json => InvoiceSectionsListByBillingProfileNameWithCreateSubPermission.json} (100%) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 95bc3e9ab5bb..c097bfec33e0 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -549,11 +549,11 @@ "InvoiceSections" ], "x-ms-examples": { - "InvoiceSectionsListByBillingAccountName": { - "$ref": "./examples/InvoiceSectionsListByBillingAccountName.json" + "InvoiceSectionsListByBillingProfileName": { + "$ref": "./examples/InvoiceSectionsListByBillingProfileName.json" } }, - "operationId": "InvoiceSections_ListByBillingAccountName", + "operationId": "InvoiceSections_ListByBillingProfileName", "description": "Lists all invoice sections for a user which he has access to.", "parameters": [ { @@ -588,8 +588,8 @@ "InvoiceSections" ], "x-ms-examples": { - "InvoiceSectionsListByBillingAccountNameWithCreateSubPermission": { - "$ref": "./examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json" + "InvoiceSectionsListByBillingProfileNameWithCreateSubPermission": { + "$ref": "./examples/InvoiceSectionsListByBillingProfileNameWithCreateSubPermission.json" } }, "operationId": "InvoiceSections_ListByCreateSubscriptionPermission", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfileName.json similarity index 100% rename from specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountName.json rename to specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfileName.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfileNameWithCreateSubPermission.json similarity index 100% rename from specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingAccountNameWithCreateSubPermission.json rename to specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoiceSectionsListByBillingProfileNameWithCreateSubPermission.json From ec62a59a9d07375e61e7874aacad84de9631ec49 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Tue, 23 Jul 2019 17:10:04 -0700 Subject: [PATCH 16/31] Updated pricesheet download path Updated pricesheet download path --- .../preview/2019-10-01-preview/billing.json | 39 +++++++++---------- .../examples/AcceptTransfer.json | 2 +- .../examples/PricesheetDownload.json | 1 + 3 files changed, 20 insertions(+), 22 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index c097bfec33e0..75f83f8532f7 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -1057,7 +1057,7 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/pricesheet/default/download": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/pricesheet/default/download": { "post": { "tags": [ "PriceSheet" @@ -1078,18 +1078,13 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "name": "billingAccountName", - "in": "path", - "description": "Azure Billing Account ID.", - "required": true, - "type": "string" + "$ref": "#/parameters/billingAccountNameParameter" }, { - "name": "invoiceName", - "description": "The name of an invoice resource.", - "in": "path", - "required": true, - "type": "string" + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/invoiceNameParameter" } ], "responses": { @@ -5673,16 +5668,18 @@ "type": "object", "description": "Request parameters to update auto renew for support product.", "properties": { - "autoRenew": { - "description": "Request parameters to update auto renew policy a product.", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "UpdateAutoRenew", - "modelAsString": true + "properties": { + "autoRenew": { + "description": "Request parameters to update auto renew policy a product.", + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "UpdateAutoRenew", + "modelAsString": true + } } } } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json index 9ef2290afae4..9f185466b835 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AcceptTransfer.json @@ -4,7 +4,7 @@ "transferName": "transferName", "parameters": { "properties": { - "value": [ + "productDetails": [ { "productType": "AzureSubscription", "productId": "subscriptionId" diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json index de5d61a41080..99dd9c120725 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownload.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-10-01-preview", "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", "invoiceName": "{invoiceName}" }, "responses": { From 9f20843a7207b2ec258dcbe25e671dae11856f04 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 24 Jul 2019 16:12:40 -0700 Subject: [PATCH 17/31] Updated type for Invoice and Policy Updated type for Invoice and Policy --- .../examples/BillingAccountInvoicesList.json | 4 ++-- .../preview/2019-10-01-preview/examples/Invoice.json | 2 +- .../examples/InvoicesListByBillingProfile.json | 4 ++-- .../preview/2019-10-01-preview/examples/Policy.json | 2 +- .../preview/2019-10-01-preview/examples/UpdatePolicy.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json index 975e02fc529a..f12d4ea01d35 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoicesList.json @@ -13,7 +13,7 @@ { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoices/1383723", "name": "1383723", - "type": "Microsoft.Billing/invoices", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", "properties": { "dueDate": "2018-01-16T17:32:28Z", "invoiceDate": "2018-01-01T17:32:28Z", @@ -52,7 +52,7 @@ { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoices/1383724", "name": "1383724", - "type": "Microsoft.Billing/invoices", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", "properties": { "dueDate": "2018-03-01T17:32:28Z", "invoiceDate": "2018-02-01T17:32:28Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json index f36a150602d0..24f9fc2a1ba3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Invoice.json @@ -10,7 +10,7 @@ "body": { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}", "name": "{invoiceName}", - "type": "Microsoft.Billing/invoices", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", "properties": { "dueDate": "2018-01-16T17:32:28Z", "invoiceDate": "2018-01-01T17:32:28Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json index c62128686bf9..f956758dfce4 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/InvoicesListByBillingProfile.json @@ -14,7 +14,7 @@ { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/1383723", "name": "1383723", - "type": "Microsoft.Billing/invoices", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", "properties": { "dueDate": "2018-01-16T17:32:28Z", "invoiceDate": "2018-01-01T17:32:28Z", @@ -61,7 +61,7 @@ { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/1383724", "name": "1383724", - "type": "Microsoft.Billing/invoices", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoices", "properties": { "dueDate": "2018-03-01T17:32:28Z", "invoiceDate": "2018-01-01T17:32:28Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json index 33e02e2426ae..2f9f8684219b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Policy.json @@ -9,7 +9,7 @@ "body": { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default", "name": "default", - "type": "Microsoft.Billing/policies", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies", "properties": { "marketplacePurchases": "AllAllowed", "reservationPurchases": "Allowed", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json index ea18b0292787..b433103f8405 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/UpdatePolicy.json @@ -17,7 +17,7 @@ "body": { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default", "name": "default", - "type": "Microsoft.Billing/policies", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies", "properties": { "marketplacePurchases": "FreeAllowed", "reservationPurchases": "NotAllowed", From fb43af7d9b0306af7a6351463bb816a794b08456 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 24 Jul 2019 16:31:55 -0700 Subject: [PATCH 18/31] Changing AgreementType->Legacy to MicrosoftOnlineServicesProgram Changing AgreementType->Legacy to MicrosoftOnlineServicesProgram --- .../Microsoft.Billing/preview/2019-10-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 75f83f8532f7..241a502433a4 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -4237,7 +4237,7 @@ "enum": [ "MicrosoftCustomerAgreement", "EnterpriseAgreement", - "Legacy" + "MicrosoftOnlineServicesProgram" ], "readOnly": true }, From 3a4c4f00834a128645f2b093c8f64f9543f11d05 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 24 Jul 2019 18:43:58 -0700 Subject: [PATCH 19/31] Added Pricesheet download by BillingProfileName --- .../preview/2019-10-01-preview/billing.json | 60 +++++++++++++++++++ ...ricesheetDownloadByBillingProfileName.json | 22 +++++++ 2 files changed, 82 insertions(+) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfileName.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 241a502433a4..bca1b2fcbda7 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -1120,6 +1120,66 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/pricesheet/default/download": { + "post": { + "tags": [ + "PriceSheet" + ], + "x-ms-examples": { + "PricesheetDownloadByBillingProfileName": { + "$ref": "./examples/PricesheetDownloadByBillingProfileName.json" + } + }, + "operationId": "PriceSheet_DownloadByBillingProfileName", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "description": "Download price sheet for an invoice.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted.", + "headers": { + "Location": { + "description": "GET this URL to retrieve the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", + "type": "string" + }, + "OData-EntityId": { + "description": "The operation entity Id GUID.", + "type": "string" + } + } + }, + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DownloadUrl" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices": { "get": { "tags": [ diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfileName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfileName.json new file mode 100644 index 000000000000..ce84c4d3c0c3 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PricesheetDownloadByBillingProfileName.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "Retry-After": "60", + "OData-EntityId": "45000000-0000-0000-0000-000000000000" + } + }, + "200": { + "body": { + "url": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "expiryTime": "2018-07-21T17:32:28Z" + } + } + } +} From 5275e24316fffeb0b90572c5a0489621c5869ea3 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 24 Jul 2019 19:09:39 -0700 Subject: [PATCH 20/31] Fixed few errors --- .../preview/2019-10-01-preview/billing.json | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index bca1b2fcbda7..cb3924e45641 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -1135,7 +1135,7 @@ "x-ms-long-running-operation-options": { "final-state-via": "location" }, - "description": "Download price sheet for an invoice.", + "description": "Download price sheet for a billing profile.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" @@ -5728,18 +5728,16 @@ "type": "object", "description": "Request parameters to update auto renew for support product.", "properties": { - "properties": { - "autoRenew": { - "description": "Request parameters to update auto renew policy a product.", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "UpdateAutoRenew", - "modelAsString": true - } + "autoRenew": { + "description": "Request parameters to update auto renew policy a product.", + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "UpdateAutoRenew", + "modelAsString": true } } } From 09d21178677c38f079ec5f83bb8d242243f326a6 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 26 Jul 2019 18:33:44 -0700 Subject: [PATCH 21/31] Updated transaction api examples Updated transaction api examples --- .../preview/2019-10-01-preview/billing.json | 16 +++++++++++++++- ...ervationTransactionsListByBillingAccount.json | 12 ++++++------ ...ervationTransactionsListByBillingProfile.json | 4 ++-- ...ervationTransactionsListByInvoiceSection.json | 8 ++++---- .../2019-10-01-preview/examples/Transaction.json | 11 ++++++----- .../TransactionsListByBillingAccount.json | 12 ++++++------ .../TransactionsListByBillingProfile.json | 4 ++-- .../TransactionsListByInvoiceSection.json | 8 ++++---- 8 files changed, 45 insertions(+), 30 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index cb3924e45641..18cd4c6b02aa 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2033,7 +2033,7 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/{transactionName}": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/{transactionName}": { "get": { "tags": [ "Transactions" @@ -2061,6 +2061,20 @@ { "$ref": "#/parameters/transactionNameParameter" }, + { + "name": "startDate", + "in": "query", + "description": "Start date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End date", + "required": true, + "type": "string" + }, { "$ref": "#/parameters/apiVersionParameter" } diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json index 1817b8de94b1..9837318050a0 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingAccount.json @@ -11,9 +11,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/41000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/41000000-0000-0000-0000-000000000000", "name": "41000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "reservation", "date": "2018-04-23T00:00:00Z", @@ -27,7 +27,7 @@ "value": 5000.00 }, "quantity": 4, - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionDisplayName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", "billingProfileDisplayName": "Contoso operations billing", @@ -36,9 +36,9 @@ } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/21000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/21000000-0000-0000-0000-000000000000", "name": "21000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "reservation", "date": "2018-05-05T00:00:00Z", @@ -52,7 +52,7 @@ "value": 6000.00 }, "quantity": 5, - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionDisplayName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", "billingProfileDisplayName": "Contoso operations billing", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json index 1b1c2f8e1948..6a3087f4d285 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByBillingProfile.json @@ -14,7 +14,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", "name": "41000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "reservation", "date": "2018-04-23T00:00:00Z", @@ -39,7 +39,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/65000000-0000-0000-0000-000000000000", "name": "65000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "reservation", "date": "2018-05-05T00:00:00Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json index d312d59e038c..1fa92aa00514 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ReservationTransactionsListByInvoiceSection.json @@ -13,9 +13,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/41000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", "name": "41000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "reservation", "date": "2018-04-23T00:00:00Z", @@ -38,9 +38,9 @@ } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/82000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/82000000-0000-0000-0000-000000000000", "name": "82000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "reservation", "date": "2018-05-05T00:00:00Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json index be6f493a2e22..d8cea9b67c25 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/Transaction.json @@ -3,15 +3,16 @@ "api-version": "2019-10-01-preview", "billingAccountName": "{billingAccountName}", "billingProfileName": "{billingProfileName}", - "invoiceSectionName": "{invoiceSectionName}", - "transactionName": "{transactionName}" + "transactionName": "{transactionName}", + "startDate": "2018-04-01", + "endDate": "2018-05-30" }, "responses": { "200": { "body": { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/{transactionName}", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/{transactionName}", "name": "{transactionName}", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-05-01T00:00:00Z", @@ -33,4 +34,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json index 9b316ba1f706..93bd0ca988c8 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingAccount.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/41000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/41000000-0000-0000-0000-000000000000", "name": "41000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-05-01T00:00:00Z", @@ -26,16 +26,16 @@ "currency": "USD", "value": 5000.00 }, - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionDisplayName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", "billingProfileDisplayName": "Contoso operations billing" } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/51000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/11000000-0000-0000-0000-000000000000/transactions/51000000-0000-0000-0000-000000000000", "name": "51000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-04-01T00:00:00Z", @@ -49,7 +49,7 @@ "currency": "USD", "value": 50.00 }, - "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000", + "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000", "invoiceSectionDisplayName": "Contoso operations invoiceSection", "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000", "billingProfileDisplayName": "Contoso operations billing" diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json index f4750f4d600b..9df271727ab7 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByBillingProfile.json @@ -13,7 +13,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", "name": "41000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-05-01T00:00:00Z", @@ -36,7 +36,7 @@ { "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/51000000-0000-0000-0000-000000000000", "name": "51000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-04-01T00:00:00Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json index 7ef4b317ea35..1d293179d171 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/TransactionsListByInvoiceSection.json @@ -12,9 +12,9 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/41000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000", "name": "41000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-05-01T00:00:00Z", @@ -35,9 +35,9 @@ } }, { - "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions/51000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/51000000-0000-0000-0000-000000000000", "name": "51000000-0000-0000-0000-000000000000", - "type": "Microsoft.Billing/transactions", + "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions", "properties": { "kind": "all", "date": "2018-04-01T00:00:00Z", From 18ddcc39fcfd708b9e9b939215b78b9c982ff11e Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Wed, 31 Jul 2019 17:14:37 -0700 Subject: [PATCH 22/31] Updated namespace for agreements Updated namespace for agreements --- .../preview/2019-10-01-preview/examples/AgreementByName.json | 2 +- .../examples/AgreementsListByBillingAccountName.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json index abce069f346b..a74474b993f3 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementByName.json @@ -9,7 +9,7 @@ "body": { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/{agreementName}", "name": "{agreementName}", - "type": "Microsoft.Billing/agreements", + "type": "Microsoft.Billing/billingAccounts/agreements", "properties": { "agreementLink": "https://agreementuri1.com", "effectiveDate": "2018-12-05T00:00:00Z", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json index c0e0d298c675..7858b33f3449 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/AgreementsListByBillingAccountName.json @@ -10,7 +10,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/Agreement1", "name": "Agreement1", - "type": "Microsoft.Billing/agreements", + "type": "Microsoft.Billing/billingAccounts/agreements", "properties": { "agreementLink": "https://agreementuri1.com", "effectiveDate": "2018-12-05T00:00:00Z", @@ -33,7 +33,7 @@ { "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/Agreement2", "name": "Agreement2", - "type": "Microsoft.Billing/agreements", + "type": "Microsoft.Billing/billingAccounts/agreements", "properties": { "agreementLink": "https://agreementuri2.com", "effectiveDate": "2018-12-05T00:00:00Z", From 1790ba79f9d9f149fa1916e94d8a1c886ecd4305 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 16:17:19 -0700 Subject: [PATCH 23/31] Incorporated review coments --- .../preview/2019-10-01-preview/billing.json | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 18cd4c6b02aa..68eab887035d 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -4313,7 +4313,11 @@ "EnterpriseAgreement", "MicrosoftOnlineServicesProgram" ], - "readOnly": true + "readOnly": true, + "x-ms-enum": { + "name": "AgreementType", + "modelAsString": true + } }, "customerType": { "description": "The type of customer.", @@ -4323,7 +4327,11 @@ "Individual", "Partner" ], - "readOnly": true + "readOnly": true, + "x-ms-enum": { + "name": "CustomerType", + "modelAsString": true + } }, "billingProfiles": { "description": "The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.", @@ -4999,7 +5007,11 @@ "Paid", "Void" ], - "readOnly": true + "readOnly": true, + "x-ms-enum": { + "name": "InvoiceStatus", + "modelAsString": true + } }, "amountDue": { "description": "Amount due.", @@ -5089,7 +5101,11 @@ "Receipt", "CreditNote" ], - "readOnly": true + "readOnly": true, + "x-ms-enum": { + "name": "DocumentType", + "modelAsString": true + } }, "url": { "description": "Document URL.", From d0721ddc7c577d30f8286ad1ce552c09affcca72 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 16:31:08 -0700 Subject: [PATCH 24/31] Incorporated review comments --- .../Microsoft.Billing/preview/2019-10-01-preview/billing.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 68eab887035d..588450314a74 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2055,9 +2055,6 @@ { "$ref": "#/parameters/billingProfileNameParameter" }, - { - "$ref": "#/parameters/invoiceSectionNameParameter" - }, { "$ref": "#/parameters/transactionNameParameter" }, From c61229b0d1b30fe6d354536d43c12eaced517b78 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 16:39:07 -0700 Subject: [PATCH 25/31] Incorporated review comments --- .../preview/2019-10-01-preview/billing.json | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 588450314a74..f439160bc935 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -5755,16 +5755,18 @@ "type": "object", "description": "Request parameters to update auto renew for support product.", "properties": { - "autoRenew": { - "description": "Request parameters to update auto renew policy a product.", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "UpdateAutoRenew", - "modelAsString": true + "properties": { + "autoRenew": { + "description": "Request parameters to update auto renew policy a product.", + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "UpdateAutoRenew", + "modelAsString": true + } } } } From c16ee5eb0df183828f1705758e5719ed7c14e047 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 16:47:21 -0700 Subject: [PATCH 26/31] Incorporated review comments --- .../Microsoft.Billing/preview/2019-10-01-preview/billing.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index f439160bc935..fbd629798591 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -5752,7 +5752,6 @@ } }, "UpdateAutoRenewRequest": { - "type": "object", "description": "Request parameters to update auto renew for support product.", "properties": { "properties": { From 5091b5f1f0e8a217df5b395b6ff10a0fd0766e67 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 17:03:53 -0700 Subject: [PATCH 27/31] Fixed build errors Fixed build errors --- .../preview/2019-10-01-preview/billing.json | 49 +++++++++---------- .../ProductCancelByBillingAccount.json | 6 +-- .../ProductCancelForInvoiceSection.json | 6 +-- 3 files changed, 27 insertions(+), 34 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index fbd629798591..4768b6fde108 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2242,13 +2242,7 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateAutoRenewRequest" - }, - "description": "Parameters supplied to cancel auto renew." + "$ref": "#/parameters/updateAutoRenewRequestParameter" } ], "responses": { @@ -2296,13 +2290,7 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateAutoRenewRequest" - }, - "description": "Parameters supplied to cancel auto renew." + "$ref": "#/parameters/updateAutoRenewRequestParameter" } ], "responses": { @@ -5752,20 +5740,19 @@ } }, "UpdateAutoRenewRequest": { + "type": "object", "description": "Request parameters to update auto renew for support product.", "properties": { - "properties": { - "autoRenew": { - "description": "Request parameters to update auto renew policy a product.", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "UpdateAutoRenew", - "modelAsString": true - } + "autoRenew": { + "description": "Request parameters to update auto renew policy a product.", + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "UpdateAutoRenew", + "modelAsString": true } } } @@ -6259,6 +6246,16 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" + }, + "updateAutoRenewRequestParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Update auto renew request parameters.", + "schema": { + "$ref": "#/definitions/UpdateAutoRenewRequest" + } } }, "security": [ diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json index be92e5625a09..f644c52ce463 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelByBillingAccount.json @@ -3,10 +3,8 @@ "api-version": "2019-10-01-preview", "billingAccountName": "{billingAccountName}", "productName": "{productName}", - "parameters": { - "properties": { - "autoRenew": "false" - } + "body": { + "autoRenew": "false" } }, "responses": { diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json index ee912df53b16..b8e1fdd126b2 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/ProductCancelForInvoiceSection.json @@ -5,10 +5,8 @@ "billingProfileName": "{billingProfileName}", "invoiceSectionName": "{invoiceSectionName}", "productName": "{productName}", - "parameters": { - "properties": { - "autoRenew": "false" - } + "body": { + "autoRenew": "false" } }, "responses": { From 3559e48931a1b39939120514a3061ac5967e4488 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 17:29:45 -0700 Subject: [PATCH 28/31] Fixed build errors Fixed build errors --- .../preview/2019-10-01-preview/billing.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 4768b6fde108..d3629a8b6ccd 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -224,7 +224,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Address" + "$ref": "#/definitions/AddressDetails" } } ], @@ -3758,7 +3758,7 @@ "description": "list of suggested addresses.", "type": "array", "items": { - "$ref": "#/definitions/Address" + "$ref": "#/definitions/AddressDetails" } }, "validationMessage": { @@ -4288,7 +4288,7 @@ }, "address": { "description": "The address associated with billing account.", - "$ref": "#/definitions/Address" + "$ref": "#/definitions/AddressDetails" }, "agreementType": { "description": "The type of agreement.", @@ -4691,7 +4691,7 @@ }, "address": { "description": "Billing address.", - "$ref": "#/definitions/Address" + "$ref": "#/definitions/AddressDetails" }, "invoiceEmailOptIn": { "description": "If the billing profile is opted in to receive invoices via email.", @@ -4719,7 +4719,7 @@ }, "address": { "description": "Billing address.", - "$ref": "#/definitions/Address" + "$ref": "#/definitions/AddressDetails" }, "invoiceEmailOptIn": { "description": "If the billing profile is opted in to receive invoices via email.", @@ -4752,7 +4752,7 @@ } } }, - "Address": { + "AddressDetails": { "description": "Address details.", "properties": { "firstName": { From a30934cc61a460b5f57b8b63e27de5eda2471b81 Mon Sep 17 00:00:00 2001 From: asarkar84 <33848291+asarkar84@users.noreply.github.com> Date: Fri, 2 Aug 2019 17:45:35 -0700 Subject: [PATCH 29/31] Updated BillingRoleAssignments actions Updated BillingRoleAssignments actions --- .../preview/2019-10-01-preview/billing.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index d3629a8b6ccd..82126c96f836 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -3327,7 +3327,9 @@ } } } - }, + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/createBillingRoleAssignment": { "post": { "tags": [ "BillingRoleAssignments" @@ -3412,7 +3414,9 @@ } } } - }, + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/createBillingRoleAssignment": { "post": { "tags": [ "BillingRoleAssignments" @@ -3500,7 +3504,9 @@ } } } - }, + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/createBillingRoleAssignment": { "post": { "tags": [ "BillingRoleAssignments" From 6d8b7e3897a371ba2f6c6b814c00bb02917ee3b3 Mon Sep 17 00:00:00 2001 From: jbnpaul Date: Thu, 1 Aug 2019 13:21:37 -0700 Subject: [PATCH 30/31] Microsoft.Billing changes to support EA to CSP transfer. --- .../preview/2019-10-01-preview/billing.json | 206 ++++++++++++++++++ .../examples/PartnerCancelTransfer.json | 27 +++ .../examples/PartnerGetTransfer.json | 39 ++++ .../examples/PartnerInitiateTransfer.json | 30 +++ .../examples/PartnerListTransfers.json | 41 ++++ 5 files changed, 343 insertions(+) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index 82126c96f836..ff2ce6573dfc 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -2517,6 +2517,178 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/initiateTransfer": { + "post": { + "tags": [ + "Transfers" + ], + "description": "Initiates the request to transfer the legacy subscriptions or RIs.", + "operationId": "PartnerTransfers_Initiate", + "x-ms-examples": { + "InitiatePartnerTransfer": { + "$ref": "./examples/PartnerInitiateTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InitiateTransferRequest" + }, + "description": "Parameters supplied to initiate the transfer." + } + ], + "responses": { + "200": { + "description": "Initiated transfer details.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Gets the transfer details for given transfer Id.", + "operationId": "PartnerTransfers_Get", + "x-ms-examples": { + "TransferGet": { + "$ref": "./examples/PartnerGetTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Transfers" + ], + "description": "Cancels the transfer for given transfer Id.", + "operationId": "PartnerTransfers_Cancel", + "x-ms-examples": { + "TransferCancel": { + "$ref": "./examples/PartnerCancelTransfer.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + }, + { + "$ref": "#/parameters/transferNameParameter" + } + ], + "responses": { + "200": { + "description": "Details of canceled transfer.", + "schema": { + "$ref": "#/definitions/TransferDetails" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers": { + "get": { + "tags": [ + "Transfers" + ], + "description": "Lists all transfer's details initiated from given invoice section.", + "operationId": "PartnerTransfersTransfers_List", + "x-ms-examples": { + "TransfersList": { + "$ref": "./examples/PartnerListTransfers.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/billingAccountNameParameter" + }, + { + "$ref": "#/parameters/billingProfileNameParameter" + }, + { + "$ref": "#/parameters/customerNameParameter" + } + ], + "responses": { + "200": { + "description": "List of transfers initiated from this invoice section.", + "schema": { + "$ref": "#/definitions/TransferDetailsListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/providers/Microsoft.Billing/transfers/{transferName}/acceptTransfer": { "post": { "tags": [ @@ -3792,6 +3964,10 @@ "recipientEmailId": { "type": "string", "description": "Email Id of recipient for transfer." + }, + "resellerId": { + "type": "string", + "description": "Optional reseller Id for transfer." } } }, @@ -3948,6 +4124,21 @@ "description": "Target billing account Id.", "readOnly": true }, + "resellerId": { + "type": "string", + "description": "Reseller Id for transfer.", + "readOnly": true + }, + "resellerName": { + "type": "string", + "description": "Reseller name for transfer.", + "readOnly": true + }, + "initiatorCustomerType": { + "type": "string", + "description": "Customer type of the initiator.", + "readOnly": true + }, "billingProfileId": { "type": "string", "description": "Target billing profile Id.", @@ -4030,6 +4221,21 @@ "readOnly": true, "description": "Email Id of initiator of transfer." }, + "resellerId": { + "type": "string", + "description": "Reseller Id for transfer.", + "readOnly": true + }, + "resellerName": { + "type": "string", + "description": "Reseller name for transfer.", + "readOnly": true + }, + "initiatorCustomerType": { + "type": "string", + "description": "Customer type of the initiator.", + "readOnly": true + }, "canceledBy": { "type": "string", "readOnly": true, diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json new file mode 100644 index 000000000000..d028698305f9 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerCancelTransfer.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "canceledBy": "user@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json new file mode 100644 index 000000000000..5c7540f29c58 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerGetTransfer.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}", + "transferName": "transferName" + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "initiatorCustomerType": "Partner", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json new file mode 100644 index 000000000000..d9f14dde3aae --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerInitiateTransfer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}", + "parameters": { + "properties": { + "recipientEmailId": "user@contoso.com" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "transferStatus": "Pending", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json new file mode 100644 index 000000000000..6a675998a83d --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/PartnerListTransfers.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2019-10-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "customerName": "{customerName}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "creationTime": "2018-10-10T17:32:28Z", + "expirationTime": "2018-11-05T17:32:28Z", + "billingAccountId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}", + "billingProfileId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}", + "invoiceSectionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}", + "transferStatus": "InProgress", + "recipientEmailId": "user@contoso.com", + "initiatorEmailId": "xyz@contoso.com", + "lastModifiedTime": "2018-10-10T17:32:28Z", + "detailedTransferStatus": [ + { + "productType": "AzureSubscription", + "productId": "subscriptionId", + "transferStatus": "InProgress" + }, + { + "productType": "AzureReservation", + "productId": "reservedInstanceId", + "transferStatus": "InProgress" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file From 19ca3b1494a1c7dfb63b0b7a5ae29e9f4043fda6 Mon Sep 17 00:00:00 2001 From: jbnpaul Date: Fri, 2 Aug 2019 19:04:55 -0700 Subject: [PATCH 31/31] Add customerName param. --- .../preview/2019-10-01-preview/billing.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json index ff2ce6573dfc..694b1b522448 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json @@ -6468,7 +6468,15 @@ "schema": { "$ref": "#/definitions/UpdateAutoRenewRequest" } - } + }, + "customerNameParameter": { + "name": "customerName", + "in": "path", + "description": "Customer name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } }, "security": [ {