From b0b657c520bd5667d5167c65d062d9b72d8a2d5d Mon Sep 17 00:00:00 2001 From: gaoyp830 <51546332+gaoyp830@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:25:28 -0700 Subject: [PATCH] [SavingsPlan] Update 2023-04-01 billing swagger with SavingsPlan API paths (#22458) --- .../stable/2023-04-01/billingSavingsPlan.json | 1220 +++++++++++++++++ ...stSavingsPlansInOrderByBillingAccount.json | 68 + .../savingsPlanGetByBillingAccount.json | 70 + ...ExpandRenewPropertiesByBillingAccount.json | 94 ++ ...erExpandedScheduleGetByBillingAccount.json | 337 +++++ .../savingsPlanOrderGetByBillingAccount.json | 33 + .../savingsPlanOrderListByBillingAccount.json | 60 + .../savingsPlanUpdateByBillingAccount.json | 91 ++ ...ngsPlanValidateUpdateByBillingAccount.json | 29 + .../savingsPlansListByBillingAccount.json | 255 ++++ .../stable/2023-04-01/types.json | 2 +- .../billing/resource-manager/readme.md | 13 + 12 files changed, 2271 insertions(+), 1 deletion(-) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/listSavingsPlansInOrderByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetExpandRenewPropertiesByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderExpandedScheduleGetByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderGetByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderListByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanUpdateByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanValidateUpdateByBillingAccount.json create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlansListByBillingAccount.json diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json new file mode 100644 index 000000000000..8903be77310b --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json @@ -0,0 +1,1220 @@ +{ + "swagger": "2.0", + "info": { + "version": "2023-04-01", + "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/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}": { + "get": { + "description": "Get a savings plan order by billing account.", + "operationId": "SavingsPlanOrder_GetByBillingAccount", + "tags": [ + "Savings plan order" + ], + "x-ms-examples": { + "SavingsPlanOrderGet": { + "$ref": "./examples/savingsPlanOrderGetByBillingAccount.json" + }, + "SavingsPlanOrderWithExpandedPaymentsGet": { + "$ref": "./examples/savingsPlanOrderExpandedScheduleGetByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "#/parameters/SavingsPlanOrderIdParameter" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderModel" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders": { + "get": { + "description": "List all Savings plan orders by billing account.", + "operationId": "SavingsPlanOrder_ListByBillingAccount", + "tags": [ + "Savings plan order" + ], + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SavingsPlanOrderList": { + "$ref": "./examples/savingsPlanOrderListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + }, + { + "$ref": "./types.json#/parameters/filter" + }, + { + "$ref": "./types.json#/parameters/orderBy" + }, + { + "$ref": "#/parameters/SkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanOrderModelList" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans": { + "get": { + "description": "List savings plans in an order by billing account.", + "operationId": "SavingsPlansInOrder_ListByBillingAccount", + "tags": [ + "Savings plan" + ], + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SavingsPlansInOrderList": { + "$ref": "./examples/listSavingsPlansInOrderByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "#/parameters/SavingsPlanOrderIdParameter" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanModelList" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlans": { + "get": { + "description": "List savings plans by billing account.", + "operationId": "SavingsPlans_ListByBillingAccount", + "tags": [ + "Savings plan" + ], + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "SavingsPlansList": { + "$ref": "./examples/savingsPlansListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + }, + { + "$ref": "./types.json#/parameters/filter" + }, + { + "$ref": "./types.json#/parameters/orderBy" + }, + { + "$ref": "#/parameters/SkipTokenParameter" + }, + { + "$ref": "#/parameters/TakeParameter" + }, + { + "$ref": "#/parameters/SelectedStateParameter" + }, + { + "$ref": "#/parameters/RefreshSummaryParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanModelListResult" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}": { + "get": { + "description": "Get savings plan by billing account.", + "operationId": "SavingsPlan_GetByBillingAccount", + "tags": [ + "Savings plan" + ], + "x-ms-examples": { + "SavingsPlanGet": { + "$ref": "./examples/savingsPlanGetByBillingAccount.json" + }, + "SavingsPlanGetExpandRenewProperties": { + "$ref": "./examples/savingsPlanGetExpandRenewPropertiesByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "#/parameters/SavingsPlanOrderIdParameter" + }, + { + "$ref": "#/parameters/SavingsPlanIdParameter" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanModel" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "description": "Update savings plan by billing account.", + "operationId": "SavingsPlan_UpdateByBillingAccount", + "tags": [ + "Savings plan" + ], + "x-ms-examples": { + "SavingsPlanUpdate": { + "$ref": "./examples/savingsPlanUpdateByBillingAccount.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "#/parameters/SavingsPlanOrderIdParameter" + }, + { + "$ref": "#/parameters/SavingsPlanIdParameter" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/SavingsPlanUpdateRequestParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanModel" + } + }, + "202": { + "description": "The request is accepted.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "URL for checking the ongoing status of the operation." + }, + "Location": { + "type": "string", + "description": "URL for determining when an operation has completed. Only use this value only when Azure-AsyncOperation isn't returned." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "Clients should wait for the Retry-After interval before polling again" + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/validate": { + "post": { + "description": "Validate savings plan patch by billing account.", + "operationId": "SavingsPlanUpdate_ValidateByBillingAccount", + "tags": [ + "Savings plan" + ], + "x-ms-examples": { + "SavingsPlanValidateUpdate": { + "$ref": "./examples/savingsPlanValidateUpdateByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "./types.json#/parameters/billingAccountName" + }, + { + "$ref": "#/parameters/SavingsPlanOrderIdParameter" + }, + { + "$ref": "#/parameters/SavingsPlanIdParameter" + }, + { + "$ref": "./types.json#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/SavingsPlanUpdateValidateRequestParameter" + } + ], + "responses": { + "200": { + "description": "The request is completed.", + "schema": { + "$ref": "#/definitions/SavingsPlanValidateResponse" + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Sku": { + "type": "object", + "description": "The SKU to be applied for this resource", + "properties": { + "name": { + "type": "string", + "description": "Name of the SKU to be applied" + } + } + }, + "BillingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing SavingsPlan" + }, + "BillingProfileId": { + "type": "string", + "readOnly": true, + "description": "Fully-qualified identifier of the billing profile where the savings plan is applied. Present only for Field-led or Customer-led customers." + }, + "CustomerId": { + "type": "string", + "readOnly": true, + "description": "Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers." + }, + "BillingAccountId": { + "type": "string", + "readOnly": true, + "description": "Fully-qualified identifier of the billing account where the savings plan is applied." + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state", + "readOnly": true, + "enum": [ + "PendingBilling", + "ConfirmedBilling", + "Creating", + "Failed", + "Created", + "Succeeded", + "Cancelled", + "Expired" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "BillingPlan": { + "type": "string", + "description": "Represents the billing plan in ISO 8601 format. Required only for monthly purchases.", + "enum": [ + "P1M" + ], + "x-ms-enum": { + "name": "BillingPlan", + "modelAsString": true + } + }, + "Renew": { + "type": "boolean", + "default": false, + "description": "Setting this to true will automatically purchase a new benefit on the expiration date time." + }, + "BenefitTerm": { + "type": "string", + "description": "Represents the Savings plan term in ISO 8601 format.", + "enum": [ + "P1Y", + "P3Y", + "P5Y" + ], + "x-ms-enum": { + "name": "SavingsPlanTerm", + "modelAsString": true + } + }, + "DisplayName": { + "type": "string", + "description": "Display name" + }, + "AppliedScopeType": { + "type": "string", + "description": "Type of the Applied Scope.", + "enum": [ + "Single", + "Shared", + "ManagementGroup" + ], + "x-ms-enum": { + "name": "AppliedScopeType", + "modelAsString": true + } + }, + "AppliedScopeProperties": { + "type": "object", + "description": "Properties specific to applied scope type. Not required if not applicable.", + "properties": { + "tenantId": { + "$ref": "#/definitions/TenantId" + }, + "managementGroupId": { + "$ref": "#/definitions/ManagementGroupId" + }, + "subscriptionId": { + "$ref": "#/definitions/SubscriptionId" + }, + "resourceGroupId": { + "$ref": "#/definitions/ResourceGroupId" + }, + "displayName": { + "type": "string", + "description": "Display name" + } + } + }, + "TenantId": { + "type": "string", + "description": "Tenant ID where the savings plan where the benefit is applied." + }, + "ManagementGroupId": { + "type": "string", + "description": "Fully-qualified identifier of the management group where the benefit is applied." + }, + "SubscriptionId": { + "type": "string", + "description": "Fully-qualified identifier of the subscription where the benefit is applied." + }, + "ResourceGroupId": { + "type": "string", + "description": "Fully-qualified identifier of the resource group where the benefit is applied." + }, + "Commitment": { + "type": "object", + "description": "Commitment towards the benefit.", + "allOf": [ + { + "$ref": "#/definitions/Price" + } + ], + "properties": { + "grain": { + "type": "string", + "description": "Commitment grain.", + "enum": [ + "Hourly" + ], + "x-ms-enum": { + "name": "CommitmentGrain", + "modelAsString": true + } + } + } + }, + "SavingsPlanId": { + "type": "string", + "description": "Identifier of the savings plan", + "readOnly": true + }, + "ExpiryDate": { + "type": "string", + "description": "Provisioning state", + "readOnly": true, + "format": "date" + }, + "SavingsPlanModelList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanModel" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page." + } + } + }, + "SavingsPlanModelListResult": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/SavingsPlanModelList" + } + ], + "properties": { + "summary": { + "description": "The roll out count summary of the savings plans", + "$ref": "#/definitions/SavingsPlanSummaryCount" + } + } + }, + "SavingsPlanModel": { + "type": "object", + "description": "Savings plan", + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Resource" + } + ], + "properties": { + "sku": { + "description": "Savings plan SKU", + "$ref": "#/definitions/Sku" + }, + "properties": { + "description": "Savings plan properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SavingsPlanModelProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/systemData", + "description": "SystemData of Savings plan.", + "readOnly": true + } + } + }, + "SavingsPlanModelProperties": { + "type": "object", + "description": "Savings plan properties", + "properties": { + "displayName": { + "$ref": "#/definitions/DisplayName" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "displayProvisioningState": { + "description": "The provisioning state of the savings plan for display, e.g. Succeeded", + "type": "string", + "readOnly": true + }, + "userFriendlyAppliedScopeType": { + "description": "The applied scope type of the savings plan for display, e.g. Shared", + "type": "string", + "readOnly": true + }, + "billingScopeId": { + "$ref": "#/definitions/BillingScopeId" + }, + "billingProfileId": { + "$ref": "#/definitions/BillingProfileId" + }, + "customerId": { + "$ref": "#/definitions/CustomerId" + }, + "billingAccountId": { + "$ref": "#/definitions/BillingAccountId" + }, + "term": { + "$ref": "#/definitions/BenefitTerm" + }, + "renew": { + "$ref": "#/definitions/Renew" + }, + "renewSource": { + "$ref": "#/definitions/RenewSource" + }, + "renewDestination": { + "$ref": "#/definitions/RenewDestination" + }, + "renewProperties": { + "$ref": "#/definitions/RenewProperties" + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan" + }, + "expiryDate": { + "$ref": "#/definitions/ExpiryDate" + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties" + }, + "commitment": { + "$ref": "#/definitions/Commitment" + }, + "effectiveDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the savings plan starting when this version is effective from.", + "readOnly": true + }, + "benefitStartTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the savings plan benefit starts.", + "readOnly": true + }, + "expiryDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the date-time when the savings plan will expire.", + "readOnly": true + }, + "purchaseDateTime": { + "type": "string", + "format": "date-time", + "description": "Date time when the savings plan was purchased.", + "readOnly": true + }, + "utilization": { + "$ref": "#/definitions/Utilization" + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo" + } + } + }, + "SavingsPlanSummaryCount": { + "description": "The roll up count summary of savings plans in each state", + "type": "object", + "properties": { + "succeededCount": { + "description": "The number of savings plans in Succeeded state", + "readOnly": true, + "type": "number" + }, + "failedCount": { + "description": "The number of savings plans in Failed state", + "readOnly": true, + "type": "number" + }, + "expiringCount": { + "description": "The number of savings plans in Expiring state", + "readOnly": true, + "type": "number" + }, + "expiredCount": { + "description": "The number of savings plans in Expired state", + "readOnly": true, + "type": "number" + }, + "pendingCount": { + "description": "The number of savings plans in Pending state", + "readOnly": true, + "type": "number" + }, + "cancelledCount": { + "description": "The number of savings plans in Cancelled state", + "readOnly": true, + "type": "number" + }, + "processingCount": { + "description": "The number of savings plans in Processing state", + "readOnly": true, + "type": "number" + }, + "noBenefitCount": { + "description": "The number of savings plans in No Benefit state", + "readOnly": true, + "type": "number" + }, + "warningCount": { + "description": "The number of savings plans in Warning state", + "readOnly": true, + "type": "number" + } + } + }, + "SavingsPlanOrderModelList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanOrderModel" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page." + } + } + }, + "SavingsPlanOrderModel": { + "type": "object", + "description": "Savings plan order", + "required": [ + "sku" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/Resource" + } + ], + "properties": { + "sku": { + "description": "Savings plan SKU", + "$ref": "#/definitions/Sku" + }, + "properties": { + "description": "Savings plan order properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SavingsPlanOrderModelProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v4/types.json#/definitions/systemData", + "description": "SystemData of Savings plan order.", + "readOnly": true + } + } + }, + "SavingsPlanOrderModelProperties": { + "type": "object", + "description": "Savings plan order properties", + "properties": { + "displayName": { + "$ref": "#/definitions/DisplayName" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "billingScopeId": { + "$ref": "#/definitions/BillingScopeId" + }, + "billingProfileId": { + "$ref": "#/definitions/BillingProfileId" + }, + "customerId": { + "$ref": "#/definitions/CustomerId" + }, + "billingAccountId": { + "$ref": "#/definitions/BillingAccountId" + }, + "term": { + "$ref": "#/definitions/BenefitTerm" + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan" + }, + "benefitStartTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the savings plan benefit started.", + "readOnly": true + }, + "expiryDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the date-time when the savings plan will expire.", + "readOnly": true + }, + "expiryDate": { + "$ref": "#/definitions/ExpiryDate" + }, + "planInformation": { + "$ref": "#/definitions/BillingPlanInformation" + }, + "savingsPlans": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanId" + } + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo" + } + } + }, + "SavingsPlanUpdateRequest": { + "type": "object", + "description": "Savings plan patch request", + "properties": { + "properties": { + "$ref": "#/definitions/SavingsPlanUpdateRequestProperties" + } + } + }, + "SavingsPlanUpdateRequestProperties": { + "type": "object", + "description": "Savings plan patch request", + "properties": { + "displayName": { + "$ref": "#/definitions/DisplayName" + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties" + }, + "renew": { + "$ref": "#/definitions/Renew" + }, + "renewProperties": { + "$ref": "#/definitions/RenewProperties" + } + } + }, + "RenewSource": { + "type": "string", + "description": "SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed." + }, + "RenewDestination": { + "type": "string", + "description": "SavingsPlan Id of the SavingsPlan which is purchased because of renew." + }, + "RenewProperties": { + "type": "object", + "properties": { + "purchaseProperties": { + "$ref": "#/definitions/PurchaseRequest" + } + } + }, + "PurchaseRequest": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PurchaseRequestProperties" + } + } + }, + "PurchaseRequestProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name of the savings plan" + }, + "billingScopeId": { + "$ref": "#/definitions/BillingScopeId" + }, + "term": { + "$ref": "#/definitions/BenefitTerm" + }, + "billingPlan": { + "$ref": "#/definitions/BillingPlan" + }, + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "commitment": { + "$ref": "#/definitions/Commitment" + }, + "renew": { + "$ref": "#/definitions/Renew" + }, + "appliedScopeProperties": { + "$ref": "#/definitions/AppliedScopeProperties" + } + } + }, + "Price": { + "type": "object", + "properties": { + "currencyCode": { + "type": "string", + "description": "The ISO 4217 3-letter currency code for the currency used by this purchase record." + }, + "amount": { + "type": "number", + "format": "double" + } + } + }, + "BillingPlanInformation": { + "type": "object", + "description": "Information describing the type of billing plan for this savings plan.", + "properties": { + "pricingCurrencyTotal": { + "$ref": "#/definitions/Price", + "description": "Amount of money to be paid for the Order. Tax is not included." + }, + "startDate": { + "type": "string", + "format": "date", + "description": "Date when the billing plan has started." + }, + "nextPaymentDueDate": { + "type": "string", + "format": "date", + "description": "For recurring billing plans, indicates the date when next payment will be processed. Null when total is paid off." + }, + "transactions": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentDetail" + }, + "x-ms-identifiers": [] + } + } + }, + "PaymentDetail": { + "type": "object", + "description": "Information about payment related to a savings plan order.", + "properties": { + "dueDate": { + "type": "string", + "format": "date", + "description": "Date when the payment needs to be done." + }, + "paymentDate": { + "type": "string", + "format": "date", + "description": "Date when the transaction is completed. Is null when it is scheduled." + }, + "pricingCurrencyTotal": { + "$ref": "#/definitions/Price", + "description": "Amount in pricing currency. Tax not included." + }, + "billingCurrencyTotal": { + "$ref": "#/definitions/Price", + "description": "Amount charged in Billing currency. Tax not included. Is null for future payments" + }, + "status": { + "$ref": "#/definitions/PaymentStatus" + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo" + } + } + }, + "PaymentStatus": { + "type": "string", + "description": "Describes whether the payment is completed, failed, cancelled or scheduled in the future.", + "enum": [ + "Succeeded", + "Failed", + "Scheduled", + "Cancelled", + "Completed" + ], + "x-ms-enum": { + "name": "PaymentStatus", + "modelAsString": true + } + }, + "Utilization": { + "readOnly": true, + "type": "object", + "description": "Savings plan utilization", + "properties": { + "trend": { + "description": "The trend for a savings plan's utilization", + "readOnly": true, + "type": "string" + }, + "aggregates": { + "description": "The array of aggregates of a savings plan's utilization", + "type": "array", + "items": { + "$ref": "#/definitions/UtilizationAggregates" + }, + "x-ms-identifiers": [] + } + } + }, + "UtilizationAggregates": { + "description": "The aggregate values of savings plan utilization", + "type": "object", + "properties": { + "grain": { + "description": "The grain of the aggregate", + "readOnly": true, + "type": "number" + }, + "grainUnit": { + "description": "The grain unit of the aggregate", + "readOnly": true, + "type": "string" + }, + "value": { + "description": "The aggregate value", + "readOnly": true, + "type": "number" + }, + "valueUnit": { + "description": "The aggregate value unit", + "readOnly": true, + "type": "string" + } + } + }, + "ExtendedStatusInfo": { + "type": "object", + "readOnly": true, + "properties": { + "statusCode": { + "type": "string", + "description": "Status code providing additional information." + }, + "message": { + "type": "string", + "description": "The message giving detailed information about the status code." + }, + "properties": { + "type": "object", + "description": "Properties specific to credit line check failure", + "properties": { + "subscriptionId": { + "type": "string", + "description": "The subscription that has failed credit line check." + } + } + } + } + }, + "SavingsPlanUpdateValidateRequest": { + "type": "object", + "properties": { + "benefits": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanUpdateRequestProperties" + }, + "x-ms-identifiers": [] + } + } + }, + "SavingsPlanValidateResponse": { + "type": "object", + "properties": { + "benefits": { + "type": "array", + "items": { + "$ref": "#/definitions/SavingsPlanValidResponseProperty" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page." + } + } + }, + "SavingsPlanValidResponseProperty": { + "type": "object", + "description": "Benefit scope response property", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the provided input is valid" + }, + "reasonCode": { + "type": "string", + "description": "Failure reason code if the provided input is invalid" + }, + "reason": { + "type": "string", + "description": "Failure reason if the provided input is invalid" + } + } + } + }, + "parameters": { + "ExpandParameter": { + "name": "expand", + "description": "May be used to expand the planInformation.", + "in": "query", + "x-ms-parameter-location": "client", + "required": false, + "type": "string" + }, + "SkipTokenParameter": { + "name": "skiptoken", + "description": "The number of savings plans to skip from the list before returning results", + "in": "query", + "required": false, + "type": "number" + }, + "TakeParameter": { + "name": "take", + "description": "The number of savings plans to return", + "in": "query", + "required": false, + "type": "number" + }, + "SelectedStateParameter": { + "name": "selectedState", + "description": "The selected provisioning state", + "in": "query", + "required": false, + "type": "string" + }, + "RefreshSummaryParameter": { + "name": "refreshSummary", + "description": "To indicate whether to refresh the roll up counts of the savings plans group by provisioning states", + "in": "query", + "required": false, + "type": "string" + }, + "SavingsPlanOrderIdParameter": { + "name": "savingsPlanOrderId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Order ID of the savings plan" + }, + "SavingsPlanIdParameter": { + "name": "savingsPlanId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "ID of the savings plan" + }, + "SavingsPlanUpdateRequestParameter": { + "name": "body", + "in": "body", + "x-ms-parameter-location": "method", + "required": true, + "description": "Request body for patching a savings plan order alias", + "schema": { + "$ref": "#/definitions/SavingsPlanUpdateRequest" + } + }, + "SavingsPlanUpdateValidateRequestParameter": { + "name": "body", + "in": "body", + "x-ms-parameter-location": "method", + "required": true, + "description": "Request body for patching a savings plan order alias", + "schema": { + "$ref": "#/definitions/SavingsPlanUpdateValidateRequest" + } + } + }, + "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/stable/2023-04-01/examples/listSavingsPlansInOrderByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/listSavingsPlansInOrderByBillingAccount.json new file mode 100644 index 000000000000..13740d1c4de0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/listSavingsPlansInOrderByBillingAccount.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + }, + "renew": false, + "appliedScopeType": "Shared", + "displayName": "SP1", + "provisioningState": "Succeeded", + "term": "P3Y", + "displayProvisioningState": "Succeeded", + "userFriendlyAppliedScopeType": "Shared", + "expiryDateTime": "2026-01-20T02:36:22.3394755Z", + "purchaseDateTime": "2023-01-20T02:34:38.1261695Z", + "benefitStartTime": "2023-01-20T02:36:22.3394755Z", + "effectiveDateTime": "2023-01-20T02:36:25.0894669Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0, + "valueUnit": "percentage" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetByBillingAccount.json new file mode 100644 index 000000000000..b721b180cccd --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetByBillingAccount.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "appliedScopeProperties": { + "tenantId": "70000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg", + "displayName": "TestRg" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + }, + "renew": false, + "appliedScopeType": "ManagementGroup", + "displayName": "SP1", + "provisioningState": "Succeeded", + "term": "P3Y", + "displayProvisioningState": "NoBenefit", + "userFriendlyAppliedScopeType": "ManagementGroup", + "expiryDateTime": "2025-11-16T02:25:11.7183866Z", + "purchaseDateTime": "2022-11-16T02:23:21.3864783Z", + "benefitStartTime": "2022-11-16T02:25:11.7183866Z", + "effectiveDateTime": "2022-12-16T01:35:36.2909462Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + } + ] + } + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetExpandRenewPropertiesByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetExpandRenewPropertiesByBillingAccount.json new file mode 100644 index 000000000000..3fe836917fcf --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetExpandRenewPropertiesByBillingAccount.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01", + "$expand": "renewProperties" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "appliedScopeProperties": { + "tenantId": "70000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg", + "displayName": "TestRg" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + }, + "renew": false, + "appliedScopeType": "ManagementGroup", + "displayName": "SP1", + "provisioningState": "Succeeded", + "term": "P3Y", + "displayProvisioningState": "NoBenefit", + "userFriendlyAppliedScopeType": "ManagementGroup", + "expiryDateTime": "2025-11-16T02:25:11.7183866Z", + "purchaseDateTime": "2022-11-16T02:23:21.3864783Z", + "benefitStartTime": "2022-11-16T02:25:11.7183866Z", + "effectiveDateTime": "2022-12-16T01:35:36.2909462Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + } + ] + }, + "renewProperties": { + "purchaseProperties": { + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", + "term": "P3Y", + "billingPlan": "Monthly", + "displayName": "SP1_renewed", + "appliedScopeType": "ManagementGroup", + "appliedScopeProperties": { + "tenantId": "70000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + } + } + } + } + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderExpandedScheduleGetByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderExpandedScheduleGetByBillingAccount.json new file mode 100644 index 000000000000..c3762e5b4677 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderExpandedScheduleGetByBillingAccount.json @@ -0,0 +1,337 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01", + "$expand": "schedule" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "name": "20000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders", + "properties": { + "billingScopeId": "10000000-0000-0000-0000-000000000000", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "billingPlan": "P1M", + "term": "P3Y", + "displayName": "SP1", + "benefitStartTime": "2023-01-20T02:36:22.3394755Z", + "provisioningState": "Succeeded", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "expiryDateTime": "2026-01-20T02:36:22.3394755Z", + "planInformation": { + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 26.28 + }, + "startDate": "2023-01-20", + "nextPaymentDueDate": "2023-02-20", + "transactions": [ + { + "dueDate": "2023-01-20", + "paymentDate": "2023-01-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "billingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Completed" + }, + { + "dueDate": "2023-02-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-03-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-04-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-05-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-06-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-07-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-08-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-09-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-10-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-11-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2023-12-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-01-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-02-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-03-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-04-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-05-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-06-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-07-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-08-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-09-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-10-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-11-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2024-12-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-01-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-02-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-03-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-04-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-05-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-06-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-07-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-08-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-09-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-10-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-11-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + }, + { + "dueDate": "2025-12-20", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 0.73 + }, + "status": "Scheduled" + } + ] + } + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderGetByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderGetByBillingAccount.json new file mode 100644 index 000000000000..dade50ffd634 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderGetByBillingAccount.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "name": "20000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders", + "properties": { + "billingScopeId": "10000000-0000-0000-0000-000000000000", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "billingPlan": "P1M", + "term": "P3Y", + "displayName": "SP1", + "benefitStartTime": "2023-01-20T02:36:22.3394755Z", + "provisioningState": "Succeeded", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "expiryDateTime": "2026-01-20T02:36:22.3394755Z" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderListByBillingAccount.json new file mode 100644 index 000000000000..057e44b4b6d0 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanOrderListByBillingAccount.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "api-version": "2023-04-01", + "$filter": "properties/billingProfileId eq '/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD'", + "$orderby": "properties/displayName asc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000", + "name": "20000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders", + "properties": { + "billingScopeId": "10000000-0000-0000-0000-000000000000", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000" + ], + "billingPlan": "P1M", + "term": "P3Y", + "displayName": "SP1", + "benefitStartTime": "2023-02-04T03:18:31.3072635Z", + "provisioningState": "Succeeded", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "expiryDateTime": "2026-02-04T03:18:31.3072635Z" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000001", + "name": "20000000-0000-0000-0000-000000000001", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders", + "properties": { + "billingScopeId": "10000000-0000-0000-0000-000000000000", + "savingsPlans": [ + "/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000001/savingsPlans/30000000-0000-0000-0000-000000000001" + ], + "billingPlan": "P1M", + "term": "P3Y", + "displayName": "SP2", + "benefitStartTime": "2023-02-04T03:22:19.7304330Z", + "provisioningState": "Succeeded", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "expiryDateTime": "2026-02-04T03:22:19.7304330Z" + }, + "sku": { + "name": "Compute_Savings_Plan" + } + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanUpdateByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanUpdateByBillingAccount.json new file mode 100644 index 000000000000..fad4e56ab4c4 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanUpdateByBillingAccount.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01", + "body": { + "properties": { + "displayName": "sp_newName", + "appliedScopeType": "ManagementGroup", + "appliedScopeProperties": { + "tenantId": "80000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/mg1" + }, + "renew": true, + "renewProperties": { + "purchaseProperties": { + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", + "term": "P3Y", + "appliedScopeType": "ManagementGroup", + "appliedScopeProperties": { + "tenantId": "80000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/mg1" + }, + "displayName": "sp_newName_renewed", + "billingPlan": "P1M", + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + } + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "appliedScopeProperties": { + "tenantId": "80000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/mg1", + "displayName": "mg1" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + }, + "renew": true, + "appliedScopeType": "ManagementGroup", + "displayName": "sp_newName", + "provisioningState": "Succeeded", + "term": "P3Y", + "displayProvisioningState": "Succeeded", + "userFriendlyAppliedScopeType": "ManagementGroup", + "expiryDateTime": "2026-02-04T03:18:31.3072635Z", + "purchaseDateTime": "2023-02-04T03:16:38.9065505Z", + "benefitStartTime": "2023-02-04T03:18:31.3072635Z", + "effectiveDateTime": "2023-02-04T04:30:49.1982989Z", + "utilization": { + "aggregates": [] + } + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000?api-version=2022-11-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000?api-version=2022-11-01", + "Retry-After": 120 + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanValidateUpdateByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanValidateUpdateByBillingAccount.json new file mode 100644 index 000000000000..d2658b2acf28 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanValidateUpdateByBillingAccount.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", + "savingsPlanId": "30000000-0000-0000-0000-000000000000", + "api-version": "2023-04-01", + "body": { + "benefits": [ + { + "appliedScopeType": "Single", + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/50000000-0000-0000-0000-000000000000" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "benefits": [ + { + "valid": true + } + ] + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlansListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlansListByBillingAccount.json new file mode 100644 index 000000000000..59d1bd289624 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlansListByBillingAccount.json @@ -0,0 +1,255 @@ +{ + "parameters": { + "billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "api-version": "2023-04-01", + "$filter": "properties/billingProfileId eq '/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD'", + "$orderby": "properties/displayName asc", + "refreshSummary": "true", + "selectedState": "Succeeded", + "take": "3" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", + "name": "30000000-0000-0000-0000-000000000000", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 10.0 + }, + "renew": false, + "appliedScopeType": "Shared", + "displayName": "SP1", + "provisioningState": "Succeeded", + "term": "P1Y", + "displayProvisioningState": "Succeeded", + "userFriendlyAppliedScopeType": "Shared", + "expiryDateTime": "2023-12-16T02:17:03.7396152Z", + "purchaseDateTime": "2022-12-16T02:14:58.2304134Z", + "benefitStartTime": "2022-12-16T02:17:03.7396152Z", + "effectiveDateTime": "2022-12-16T02:17:04.9896661Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + } + ] + } + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000001/savingsPlans/30000000-0000-0000-0000-000000000001", + "name": "30000000-0000-0000-0000-000000000001", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "appliedScopeProperties": { + "tenantId": "50000000-0000-0000-0000-000000000000", + "managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg", + "displayName": "TestRg" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 10.0 + }, + "renew": false, + "appliedScopeType": "ManagementGroup", + "displayName": "SP2", + "provisioningState": "Succeeded", + "term": "P1Y", + "displayProvisioningState": "Succeeded", + "userFriendlyAppliedScopeType": "ManagementGroup", + "expiryDateTime": "2023-12-16T02:22:22.7254795Z", + "purchaseDateTime": "2022-12-16T02:20:23.4733076Z", + "benefitStartTime": "2022-12-16T02:22:22.7254795Z", + "effectiveDateTime": "2022-12-16T02:22:24.5536191Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 0.0, + "valueUnit": "percentage" + } + ] + } + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000002/savingsPlans/30000000-0000-0000-0000-000000000002", + "name": "30000000-0000-0000-0000-000000000002", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingSubscriptions/10000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "appliedScopeProperties": { + "subscriptionId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "displayName": "Azure subscription 1" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.025 + }, + "renew": true, + "appliedScopeType": "Single", + "displayName": "SP3", + "provisioningState": "Succeeded", + "term": "P3Y", + "displayProvisioningState": "Succeeded", + "userFriendlyAppliedScopeType": "Single", + "expiryDateTime": "2025-10-14T21:18:55.2960613Z", + "purchaseDateTime": "2022-10-14T21:16:57.2347688Z", + "benefitStartTime": "2022-10-14T21:18:55.2960613Z", + "effectiveDateTime": "2022-11-07T23:54:43.8233243Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 66.0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 66.0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 65.52, + "valueUnit": "percentage" + } + ] + } + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000003/savingsPlans/30000000-0000-0000-0000-000000000003", + "name": "30000000-0000-0000-0000-000000000003", + "type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", + "sku": { + "name": "Compute_Savings_Plan" + }, + "properties": { + "billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", + "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", + "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", + "billingPlan": "P1M", + "appliedScopeProperties": { + "resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourcegroups/testRG", + "displayName": "testRG" + }, + "commitment": { + "grain": "Hourly", + "currencyCode": "USD", + "amount": 0.001 + }, + "renew": false, + "appliedScopeType": "Single", + "displayName": "SP4", + "provisioningState": "Succeeded", + "term": "P3Y", + "displayProvisioningState": "Succeeded", + "userFriendlyAppliedScopeType": "ResourceGroup", + "expiryDateTime": "2025-11-08T00:00:06.3636747Z", + "purchaseDateTime": "2022-11-07T23:57:58.2428677Z", + "benefitStartTime": "2022-11-08T00:00:06.3636747Z", + "effectiveDateTime": "2022-11-30T21:18:12.1967323Z", + "utilization": { + "trend": "SAME", + "aggregates": [ + { + "grain": 1.0, + "grainUnit": "days", + "value": 100.0, + "valueUnit": "percentage" + }, + { + "grain": 7.0, + "grainUnit": "days", + "value": 100.0, + "valueUnit": "percentage" + }, + { + "grain": 30.0, + "grainUnit": "days", + "value": 100.0, + "valueUnit": "percentage" + } + ] + } + } + } + ], + "summary": { + "noBenefitCount": 0, + "warningCount": 0, + "succeededCount": 3, + "failedCount": 0, + "expiringCount": 0, + "expiredCount": 0, + "pendingCount": 0, + "cancelledCount": 0, + "processingCount": 0 + } + } + } + } +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/types.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/types.json index 46bf506a6eee..9c609aa0eb61 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/types.json +++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/types.json @@ -10,7 +10,7 @@ }, "version": "2023-04-01" }, - "paths": {}, + "paths": { }, "definitions": { "ArmError": { "description": "The error detail.", diff --git a/specification/billing/resource-manager/readme.md b/specification/billing/resource-manager/readme.md index c3e6b3f12611..72c74a919cc0 100644 --- a/specification/billing/resource-manager/readme.md +++ b/specification/billing/resource-manager/readme.md @@ -29,6 +29,18 @@ openapi-type: arm tag: package-2023-04 ``` +### Suppression +``` yaml +directive: + - suppress: ProvisioningStateValidation + from: billingSavingsPlan.json + where: $.definitions.ProvisioningState + reason: \'Cancelled\' state is used in the service which should be equivalent to in ARM's \'Canceled\' definition ProvisioningState property. + - suppress: PatchSkuProperty + from: billingSavingsPlan.json + reason: \'Sku\' is not a supported property in savings plan patch operation +``` + ### Tag: package-2023-04 These settings apply only when `--tag=package-2023-04` is specified on the command line. @@ -45,6 +57,7 @@ input-file: - Microsoft.Billing/stable/2023-04-01/billingProperty.json - Microsoft.Billing/stable/2023-04-01/billingRoleAssignment.json - Microsoft.Billing/stable/2023-04-01/billingRoleDefinition.json +- Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json - Microsoft.Billing/stable/2023-04-01/billingSubscription.json - Microsoft.Billing/stable/2023-04-01/customer.json - Microsoft.Billing/stable/2023-04-01/instruction.json