|
1596 | 1596 | } |
1597 | 1597 | } |
1598 | 1598 | }, |
1599 | | - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/events": { |
| 1599 | + "/{scope}/providers/Microsoft.Consumption/events": { |
1600 | 1600 | "get": { |
1601 | 1601 | "tags": [ |
1602 | 1602 | "Events" |
|
1609 | 1609 | "x-ms-examples": { |
1610 | 1610 | "EventsListByBillingProfile": { |
1611 | 1611 | "$ref": "./examples/EventsListByBillingProfile.json" |
| 1612 | + }, |
| 1613 | + "EventsList-Modern": { |
| 1614 | + "$ref": "./examples/EventsListByCustomer.json" |
1612 | 1615 | } |
1613 | 1616 | }, |
1614 | 1617 | "parameters": [ |
1615 | | - { |
1616 | | - "$ref": "#/parameters/billingAccountIdParameter" |
1617 | | - }, |
1618 | | - { |
1619 | | - "$ref": "#/parameters/billingProfileIdParameter" |
1620 | | - }, |
1621 | 1618 | { |
1622 | 1619 | "$ref": "#/parameters/apiVersionParameter" |
1623 | 1620 | }, |
|
1626 | 1623 | }, |
1627 | 1624 | { |
1628 | 1625 | "$ref": "#/parameters/endDateParameter" |
| 1626 | + }, |
| 1627 | + { |
| 1628 | + "$ref": "#/parameters/scopeEventsParameter" |
1629 | 1629 | } |
1630 | 1630 | ], |
1631 | 1631 | "responses": { |
|
1647 | 1647 | } |
1648 | 1648 | } |
1649 | 1649 | }, |
1650 | | - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/lots": { |
| 1650 | + "/{scope}/providers/Microsoft.Consumption/lots": { |
1651 | 1651 | "get": { |
1652 | 1652 | "tags": [ |
1653 | 1653 | "Lots" |
|
1658 | 1658 | "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" |
1659 | 1659 | }, |
1660 | 1660 | "x-ms-examples": { |
1661 | | - "EventsListByBillingProfile": { |
| 1661 | + "LotsListByBillingProfile": { |
1662 | 1662 | "$ref": "./examples/LotsListByBillingProfile.json" |
| 1663 | + }, |
| 1664 | + "LotsList-Modern": { |
| 1665 | + "$ref": "./examples/LotsListByCustomer.json" |
1663 | 1666 | } |
1664 | 1667 | }, |
1665 | 1668 | "parameters": [ |
1666 | 1669 | { |
1667 | | - "$ref": "#/parameters/billingAccountIdParameter" |
1668 | | - }, |
1669 | | - { |
1670 | | - "$ref": "#/parameters/billingProfileIdParameter" |
| 1670 | + "$ref": "#/parameters/scopeLotsParameter" |
1671 | 1671 | }, |
1672 | 1672 | { |
1673 | 1673 | "$ref": "#/parameters/apiVersionParameter" |
|
1692 | 1692 | } |
1693 | 1693 | } |
1694 | 1694 | }, |
1695 | | - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/credits/balanceSummary": { |
| 1695 | + "/{scope}/providers/Microsoft.Consumption/credits/balanceSummary": { |
1696 | 1696 | "get": { |
1697 | 1697 | "tags": [ |
1698 | 1698 | "Credits" |
|
1703 | 1703 | "url": "https://docs.microsoft.com/en-us/rest/api/consumption/" |
1704 | 1704 | }, |
1705 | 1705 | "x-ms-examples": { |
1706 | | - "CreditSummaryByBillingProfile": { |
| 1706 | + "CreditsBalanceSummaryByBillingProfile": { |
1707 | 1707 | "$ref": "./examples/CreditSummaryByBillingProfile.json" |
| 1708 | + }, |
| 1709 | + "CreditsBalanceSummary-Modern": { |
| 1710 | + "$ref": "./examples/CreditSummaryByCustomer.json" |
1708 | 1711 | } |
1709 | 1712 | }, |
1710 | 1713 | "parameters": [ |
1711 | 1714 | { |
1712 | | - "$ref": "#/parameters/billingAccountIdParameter" |
1713 | | - }, |
1714 | | - { |
1715 | | - "$ref": "#/parameters/billingProfileIdParameter" |
| 1715 | + "$ref": "#/parameters/apiVersionParameter" |
1716 | 1716 | }, |
1717 | 1717 | { |
1718 | | - "$ref": "#/parameters/apiVersionParameter" |
| 1718 | + "$ref": "#/parameters/scopeCreditsParameter" |
1719 | 1719 | } |
1720 | 1720 | ], |
1721 | 1721 | "responses": { |
|
4848 | 4848 | "EventProperties": { |
4849 | 4849 | "description": "The event properties.", |
4850 | 4850 | "properties": { |
| 4851 | + "creditCurrency": { |
| 4852 | + "description": "Credit Currency", |
| 4853 | + "type": "string", |
| 4854 | + "readOnly": true |
| 4855 | + }, |
| 4856 | + "billingCurrency": { |
| 4857 | + "description": "Billing Currency.", |
| 4858 | + "type": "string", |
| 4859 | + "readOnly": true |
| 4860 | + }, |
4851 | 4861 | "transactionDate": { |
4852 | 4862 | "description": "Transaction date.", |
4853 | 4863 | "type": "string", |
|
4864 | 4874 | "readOnly": true, |
4865 | 4875 | "$ref": "#/definitions/amount" |
4866 | 4876 | }, |
| 4877 | + "newCreditInBillingCurrency": { |
| 4878 | + "description": "Current balance.", |
| 4879 | + "readOnly": true, |
| 4880 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 4881 | + }, |
4867 | 4882 | "adjustments": { |
4868 | 4883 | "description": "Adjustments amount.", |
4869 | 4884 | "readOnly": true, |
4870 | 4885 | "$ref": "#/definitions/amount" |
4871 | 4886 | }, |
| 4887 | + "adjustmentsInBillingCurrency": { |
| 4888 | + "description": "Current balance.", |
| 4889 | + "readOnly": true, |
| 4890 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 4891 | + }, |
4872 | 4892 | "creditExpired": { |
4873 | 4893 | "description": "Credit expired.", |
4874 | 4894 | "readOnly": true, |
4875 | 4895 | "$ref": "#/definitions/amount" |
4876 | 4896 | }, |
| 4897 | + "creditExpiredInBillingCurrency": { |
| 4898 | + "description": "Current balance.", |
| 4899 | + "readOnly": true, |
| 4900 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 4901 | + }, |
4877 | 4902 | "charges": { |
4878 | 4903 | "description": "Charges amount.", |
4879 | 4904 | "readOnly": true, |
4880 | 4905 | "$ref": "#/definitions/amount" |
4881 | 4906 | }, |
| 4907 | + "chargesInBillingCurrency": { |
| 4908 | + "description": "Current balance.", |
| 4909 | + "readOnly": true, |
| 4910 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 4911 | + }, |
4882 | 4912 | "closedBalance": { |
4883 | 4913 | "description": "Closed balance.", |
4884 | 4914 | "readOnly": true, |
4885 | 4915 | "$ref": "#/definitions/amount" |
4886 | 4916 | }, |
| 4917 | + "closedBalanceInBillingCurrency": { |
| 4918 | + "description": "Current balance.", |
| 4919 | + "readOnly": true, |
| 4920 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 4921 | + }, |
4887 | 4922 | "eventType": { |
4888 | 4923 | "description": "The type of event.", |
4889 | 4924 | "type": "string", |
|
4905 | 4940 | "description": "Invoice number.", |
4906 | 4941 | "type": "string", |
4907 | 4942 | "readOnly": true |
| 4943 | + }, |
| 4944 | + "reseller": { |
| 4945 | + "description": "Reseller details.", |
| 4946 | + "readOnly": true, |
| 4947 | + "$ref": "#/definitions/Reseller" |
4908 | 4948 | } |
4909 | 4949 | } |
4910 | 4950 | }, |
|
4945 | 4985 | "LotProperties": { |
4946 | 4986 | "description": "The lot properties.", |
4947 | 4987 | "properties": { |
| 4988 | + "creditCurrency": { |
| 4989 | + "description": "Credit Currency", |
| 4990 | + "type": "string", |
| 4991 | + "readOnly": true |
| 4992 | + }, |
| 4993 | + "billingCurrency": { |
| 4994 | + "description": "Billing Currency.", |
| 4995 | + "type": "string", |
| 4996 | + "readOnly": true |
| 4997 | + }, |
4948 | 4998 | "originalAmount": { |
4949 | 4999 | "description": "Original amount.", |
4950 | 5000 | "readOnly": true, |
4951 | 5001 | "$ref": "#/definitions/amount" |
4952 | 5002 | }, |
| 5003 | + "originalAmountInBillingCurrency": { |
| 5004 | + "description": "Current balance.", |
| 5005 | + "readOnly": true, |
| 5006 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 5007 | + }, |
4953 | 5008 | "closedBalance": { |
4954 | 5009 | "description": "Closed balance.", |
4955 | 5010 | "readOnly": true, |
4956 | 5011 | "$ref": "#/definitions/amount" |
4957 | 5012 | }, |
| 5013 | + "closedBalanceInBillingCurrency": { |
| 5014 | + "description": "Current balance.", |
| 5015 | + "readOnly": true, |
| 5016 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 5017 | + }, |
4958 | 5018 | "source": { |
4959 | 5019 | "description": "Lot source.", |
4960 | 5020 | "type": "string", |
|
4984 | 5044 | "description": "PO number.", |
4985 | 5045 | "type": "string", |
4986 | 5046 | "readOnly": true |
| 5047 | + }, |
| 5048 | + "reseller": { |
| 5049 | + "description": "Reseller details.", |
| 5050 | + "readOnly": true, |
| 5051 | + "$ref": "#/definitions/Reseller" |
4987 | 5052 | } |
4988 | 5053 | } |
4989 | 5054 | }, |
|
5007 | 5072 | "description": "The properties of the credit summary.", |
5008 | 5073 | "type": "object", |
5009 | 5074 | "properties": { |
| 5075 | + "creditCurrency": { |
| 5076 | + "description": "Credit Currency", |
| 5077 | + "type": "string", |
| 5078 | + "readOnly": true |
| 5079 | + }, |
| 5080 | + "billingCurrency": { |
| 5081 | + "description": "Billing Currency.", |
| 5082 | + "type": "string", |
| 5083 | + "readOnly": true |
| 5084 | + }, |
5010 | 5085 | "balanceSummary": { |
5011 | 5086 | "description": "Summary of balances associated with this credit summary.", |
5012 | 5087 | "readOnly": true, |
|
5026 | 5101 | "description": "Pending eligible charges.", |
5027 | 5102 | "readOnly": true, |
5028 | 5103 | "$ref": "#/definitions/amount" |
| 5104 | + }, |
| 5105 | + "reseller": { |
| 5106 | + "description": "Reseller details.", |
| 5107 | + "readOnly": true, |
| 5108 | + "$ref": "#/definitions/Reseller" |
5029 | 5109 | } |
5030 | 5110 | } |
5031 | 5111 | }, |
|
5041 | 5121 | "description": "Current balance.", |
5042 | 5122 | "readOnly": true, |
5043 | 5123 | "$ref": "#/definitions/amount" |
| 5124 | + }, |
| 5125 | + "estimatedBalanceInBillingCurrency": { |
| 5126 | + "description": "Current balance.", |
| 5127 | + "readOnly": true, |
| 5128 | + "$ref": "#/definitions/AmountWithExchangeRate" |
| 5129 | + }, |
| 5130 | + "currentBalanceInBillingCurrency": { |
| 5131 | + "description": "Current balance.", |
| 5132 | + "readOnly": true, |
| 5133 | + "$ref": "#/definitions/AmountWithExchangeRate" |
5044 | 5134 | } |
5045 | 5135 | } |
5046 | 5136 | }, |
|
5060 | 5150 | } |
5061 | 5151 | } |
5062 | 5152 | }, |
| 5153 | + "AmountWithExchangeRate": { |
| 5154 | + "description": "Reseller details", |
| 5155 | + "allOf": [ |
| 5156 | + { |
| 5157 | + "$ref": "#/definitions/amount" |
| 5158 | + } |
| 5159 | + ], |
| 5160 | + "properties": { |
| 5161 | + "exchangeRate": { |
| 5162 | + "description": "Exchange Rate.", |
| 5163 | + "type": "number", |
| 5164 | + "format": "decimal", |
| 5165 | + "readOnly": true |
| 5166 | + }, |
| 5167 | + "exchangeRateMonth": { |
| 5168 | + "description": "Exchange rate month.", |
| 5169 | + "type": "number", |
| 5170 | + "readOnly": true |
| 5171 | + } |
| 5172 | + } |
| 5173 | + }, |
| 5174 | + "Reseller": { |
| 5175 | + "description": "Reseller details", |
| 5176 | + "properties": { |
| 5177 | + "resellerId": { |
| 5178 | + "description": "Reseller id.", |
| 5179 | + "type": "string", |
| 5180 | + "readOnly": true |
| 5181 | + }, |
| 5182 | + "resellerDescription": { |
| 5183 | + "description": "Reseller Description.", |
| 5184 | + "type": "string", |
| 5185 | + "readOnly": true |
| 5186 | + } |
| 5187 | + } |
| 5188 | + }, |
5063 | 5189 | "Resource": { |
5064 | 5190 | "description": "The Resource model definition.", |
5065 | 5191 | "properties": { |
|
5174 | 5300 | "x-ms-parameter-location": "method", |
5175 | 5301 | "x-ms-skip-url-encoding": true |
5176 | 5302 | }, |
| 5303 | + "scopeCreditsParameter": { |
| 5304 | + "name": "scope", |
| 5305 | + "in": "path", |
| 5306 | + "required": true, |
| 5307 | + "type": "string", |
| 5308 | + "description": "The scope associated with credits operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for Billing Profile scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", |
| 5309 | + "x-ms-parameter-location": "method", |
| 5310 | + "x-ms-skip-url-encoding": true |
| 5311 | + }, |
| 5312 | + "scopeEventsParameter": { |
| 5313 | + "name": "scope", |
| 5314 | + "in": "path", |
| 5315 | + "required": true, |
| 5316 | + "type": "string", |
| 5317 | + "description": "The scope associated with events operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for Billing Profile scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", |
| 5318 | + "x-ms-parameter-location": "method", |
| 5319 | + "x-ms-skip-url-encoding": true |
| 5320 | + }, |
| 5321 | + "scopeLotsParameter": { |
| 5322 | + "name": "scope", |
| 5323 | + "in": "path", |
| 5324 | + "required": true, |
| 5325 | + "type": "string", |
| 5326 | + "description": "The scope associated with Lots operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for Billing Profile scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", |
| 5327 | + "x-ms-parameter-location": "method", |
| 5328 | + "x-ms-skip-url-encoding": true |
| 5329 | + }, |
5177 | 5330 | "scopeUsageDetailsParameter": { |
5178 | 5331 | "name": "scope", |
5179 | 5332 | "in": "path", |
|
0 commit comments