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 e9c47f7b2ec5..5758a1e9f9f7 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 @@ -421,19 +421,6 @@ "$ref": "#/definitions/InvoiceSectionListResult" } }, - "202": { - "description": "Accepted. InvoiceSection creation 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": { @@ -504,6 +491,45 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections": { + "get": { + "tags": [ + "InvoiceSections" + ], + "x-ms-examples": { + "InvoiceSectionsListByBillingProfileName": { + "$ref": "./examples/InvoiceSectionsListByBillingProfileName.json" + } + }, + "operationId": "InvoiceSections_ListByBillingProfileName", + "description": "Lists all invoice sections under a billing profile 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}/listInvoiceSectionsWithCreateSubscriptionPermission": { "get": { "tags": [ @@ -541,19 +567,6 @@ "$ref": "#/definitions/InvoiceSectionListResult" } }, - "202": { - "description": "Accepted. InvoiceSection creation 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": { @@ -1898,6 +1911,36 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/elevate": { + "post": { + "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/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}/invoiceSections/{invoiceSectionName}/initiateTransfer": { "post": { "description": "Initiates the request to transfer the GTM or legacy subscriptions or RIs to GTM.", @@ -1918,9 +1961,6 @@ "$ref": "#/parameters/initiateTransferRequestParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Initiated transfer details.", @@ -1957,9 +1997,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of transfer.", @@ -1994,9 +2031,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of canceled transfer.", @@ -2030,9 +2064,6 @@ "$ref": "#/parameters/invoiceSectionNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "List of transfers initiated from this invoice section.", @@ -2069,9 +2100,6 @@ "$ref": "#/parameters/acceptTransferRequestParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of the accepted transfer.", @@ -2102,9 +2130,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of the declined transfer.", @@ -2135,9 +2160,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of the transfers with given Id.", @@ -2163,9 +2185,6 @@ "$ref": "./examples/ListRecipientTransfers.json" } }, - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "List of transfers received by caller.", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ElevateInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ElevateInvoiceSection.json new file mode 100644 index 000000000000..7993bc6e1840 --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ElevateInvoiceSection.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountName": "billingAccountName", + "invoiceSectionName": "invoiceSectionName" + }, + + "responses": { + "204": { + } + } +} \ No newline at end of file diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionsListByBillingProfileName.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionsListByBillingProfileName.json new file mode 100644 index 000000000000..06936c1697fe --- /dev/null +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionsListByBillingProfileName.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "billingAccountName": "billingAccountName", + "billingProfileName": "billingProfileName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/invoiceSectionId2", + "name": "invoiceSectionId2", + "type": "Microsoft.Billing/invoiceSections", + "properties": { + "displayName": "invoiceSectionName2" + } + } + ] + } + } + } +} \ No newline at end of file