From e739ea8c6431c3a72367cb6e2a90fa187e426e1d Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 13:56:07 -0700 Subject: [PATCH 01/14] Add elevate API. --- .../preview/2018-11-01-preview/billing.json | 57 +++++++++++-------- .../examples/ElevateInvoiceSection.json | 12 ++++ 2 files changed, 45 insertions(+), 24 deletions(-) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ElevateInvoiceSection.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 e9c47f7b2ec5..3a2430645450 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 @@ -1898,6 +1898,39 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfile}/invoiceSections/{invoiceSectionName}/elevate": { + "post": { + "description": "Elevates the caller's access to match their billing profile access.", + "operationId": "InvoiceSection_Elevate", + "x-ms-examples": { + "InitiateTransfer": { + "$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}/invoiceSections/{invoiceSectionName}/initiateTransfer": { "post": { "description": "Initiates the request to transfer the GTM or legacy subscriptions or RIs to GTM.", @@ -1918,9 +1951,6 @@ "$ref": "#/parameters/initiateTransferRequestParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Initiated transfer details.", @@ -1957,9 +1987,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of transfer.", @@ -1994,9 +2021,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of canceled transfer.", @@ -2030,9 +2054,6 @@ "$ref": "#/parameters/invoiceSectionNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "List of transfers initiated from this invoice section.", @@ -2069,9 +2090,6 @@ "$ref": "#/parameters/acceptTransferRequestParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of the accepted transfer.", @@ -2102,9 +2120,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of the declined transfer.", @@ -2135,9 +2150,6 @@ "$ref": "#/parameters/transferNameParameter" } ], - "tags": [ - "AIPController" - ], "responses": { "200": { "description": "Details of the transfers with given Id.", @@ -2163,9 +2175,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..e110547684c8 --- /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", + "billingProfileName": "billingProfileName", + "invoiceSectionName": "invoiceSectionName" + }, + + "responses": { + "204": null + } +} \ No newline at end of file From 45051ba468681f023067f1e9ce2291e842207a21 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 14:45:42 -0700 Subject: [PATCH 02/14] Remove unnecessary comma. --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3a2430645450..47f3c38fdd7f 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 @@ -1920,7 +1920,7 @@ ], "responses": { "204": { - "description": "Elevated the caller's access to the invoice section.", + "description": "Elevated the caller's access to the invoice section." }, "default": { "description": "Unexpected error.", From db27efeea47daca6d90a7ceafbbb3efd1b50e080 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 14:53:50 -0700 Subject: [PATCH 03/14] Validation fix. --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 4 ++-- 1 file changed, 2 insertions(+), 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 47f3c38fdd7f..ac7ee62403c8 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 @@ -1898,12 +1898,12 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfile}/invoiceSections/{invoiceSectionName}/elevate": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/elevate": { "post": { "description": "Elevates the caller's access to match their billing profile access.", "operationId": "InvoiceSection_Elevate", "x-ms-examples": { - "InitiateTransfer": { + "Elevate": { "$ref": "./examples/ElevateInvoiceSection.json" } }, From 494902929ecb27374bd0c3f28fea0a65d3c54f75 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 15:08:29 -0700 Subject: [PATCH 04/14] Add billingProfiles/invoiceSections. --- .../preview/2018-11-01-preview/billing.json | 59 +++++++++++++++++++ ...voiceSectionsListByBillingProfileName.json | 31 ++++++++++ 2 files changed, 90 insertions(+) create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/InvoiceSectionsListByBillingProfileName.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 ac7ee62403c8..f386e92bf367 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 @@ -504,6 +504,65 @@ } } }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections": { + "get": { + "tags": [ + "InvoiceSections" + ], + "x-ms-examples": { + "InvoiceSectionsListByBillingProfileName": { + "$ref": "./examples/InvoiceSectionsListByBillingProfileName.json" + } + }, + "operationId": "InvoiceSectionsByBillingProfileName_List", + "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" + }, + { + "name": "$expand", + "description": "May be used to expand the billingProfiles.", + "in": "query", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$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": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission": { "get": { "tags": [ 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..818f1b3387c4 --- /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}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1", + "name": "invoiceSectionId1", + "type": "Microsoft.Billing/invoiceSections", + "properties": { + "displayName": "invoiceSectionName1" + } + }, + { + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId2", + "name": "invoiceSectionId2", + "type": "Microsoft.Billing/invoiceSections", + "properties": { + "displayName": "invoiceSectionName2" + } + } + ] + } + } + } +} \ No newline at end of file From dd0140ce1f837721380347de3a7221d341b452d7 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 15:12:02 -0700 Subject: [PATCH 05/14] validation fix --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 2 +- .../examples/InvoiceSectionsListByBillingProfileName.json | 2 +- 2 files changed, 2 insertions(+), 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 f386e92bf367..274d60867b5b 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 @@ -562,7 +562,7 @@ } } } - } + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission": { "get": { "tags": [ 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 index 818f1b3387c4..9b69e4eb052e 100644 --- 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 @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2018-11-01-preview", - "billingAccountName": "billingAccountName" + "billingAccountName": "billingAccountName", "billingProfileName": "billingProfileName" }, "responses": { From 183a23ee5a1a57f35f6e43f1a69534565519ed09 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 15:51:29 -0700 Subject: [PATCH 06/14] Specify empty body for 204 response in example. --- .../2018-11-01-preview/examples/ElevateInvoiceSection.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 index e110547684c8..ca35357b6892 100644 --- 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 @@ -7,6 +7,7 @@ }, "responses": { - "204": null + "204": { + } } } \ No newline at end of file From 1fd63f1771132318e6e7d5b4c518c6a2b4dea76d Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 16:03:47 -0700 Subject: [PATCH 07/14] Build fix for Java SDK. --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 274d60867b5b..d249558c6513 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 @@ -1960,7 +1960,7 @@ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/elevate": { "post": { "description": "Elevates the caller's access to match their billing profile access.", - "operationId": "InvoiceSection_Elevate", + "operationId": "BillingProfileInvoiceSection_Elevate", "x-ms-examples": { "Elevate": { "$ref": "./examples/ElevateInvoiceSection.json" From a2665e70760997b1ee3edcf60bdd3258f2ad16ec Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 16:12:56 -0700 Subject: [PATCH 08/14] Remove $expand from billingProfiles/invoiceSections. --- .../preview/2018-11-01-preview/billing.json | 7 ------- 1 file changed, 7 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 d249558c6513..163c8fbebcbf 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 @@ -525,13 +525,6 @@ }, { "$ref": "#/parameters/billingProfileNameParameter" - }, - { - "name": "$expand", - "description": "May be used to expand the billingProfiles.", - "in": "query", - "required": false, - "type": "string" } ], "responses": { From a762befdc42ae96e0954f44198610fb95cab1015 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 16:16:57 -0700 Subject: [PATCH 09/14] Move /elevate to top-level invoice sections resource. --- .../preview/2018-11-01-preview/billing.json | 7 ++----- .../2018-11-01-preview/examples/ElevateInvoiceSection.json | 1 - 2 files changed, 2 insertions(+), 6 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 163c8fbebcbf..76166a6cfe7b 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 @@ -1950,10 +1950,10 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/elevate": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/elevate": { "post": { "description": "Elevates the caller's access to match their billing profile access.", - "operationId": "BillingProfileInvoiceSection_Elevate", + "operationId": "InvoiceSection_Elevate", "x-ms-examples": { "Elevate": { "$ref": "./examples/ElevateInvoiceSection.json" @@ -1963,9 +1963,6 @@ { "$ref": "#/parameters/billingAccountNameParameter" }, - { - "$ref": "#/parameters/billingProfileNameParameter" - }, { "$ref": "#/parameters/invoiceSectionNameParameter" } 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 index ca35357b6892..7993bc6e1840 100644 --- 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 @@ -2,7 +2,6 @@ "parameters": { "api-version": "2018-08-01-preview", "billingAccountName": "billingAccountName", - "billingProfileName": "billingProfileName", "invoiceSectionName": "invoiceSectionName" }, From 59680b2eb7e58c2fd041043cd3d9f82523407c41 Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 16:19:16 -0700 Subject: [PATCH 10/14] Example fix. --- .../examples/InvoiceSectionsListByBillingProfileName.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 index 9b69e4eb052e..06936c1697fe 100644 --- 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 @@ -9,7 +9,7 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/invoiceSectionId1", "name": "invoiceSectionId1", "type": "Microsoft.Billing/invoiceSections", "properties": { @@ -17,7 +17,7 @@ } }, { - "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId2", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/invoiceSectionId2", "name": "invoiceSectionId2", "type": "Microsoft.Billing/invoiceSections", "properties": { From 90e03b4d5e0828cd03d06a49e2c854d026c26f0e Mon Sep 17 00:00:00 2001 From: wilco Date: Tue, 26 Mar 2019 16:32:59 -0700 Subject: [PATCH 11/14] Java build break. --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 76166a6cfe7b..f05edf117ea4 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 @@ -1953,7 +1953,7 @@ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/elevate": { "post": { "description": "Elevates the caller's access to match their billing profile access.", - "operationId": "InvoiceSection_Elevate", + "operationId": "BillingProfileInvoiceSection_Elevate", "x-ms-examples": { "Elevate": { "$ref": "./examples/ElevateInvoiceSection.json" From 96952ae9cebdd2ac18a2b27d0a77f7145b9b945d Mon Sep 17 00:00:00 2001 From: wilco Date: Wed, 27 Mar 2019 18:54:29 -0700 Subject: [PATCH 12/14] Remove erroneous 202s. --- .../preview/2018-11-01-preview/billing.json | 39 ------------------- 1 file changed, 39 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 f05edf117ea4..30b7b4d5fec1 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": { @@ -534,19 +521,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": { @@ -593,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": { From 99c717c12fc07152a2ac37a9d4c27f1bc506abae Mon Sep 17 00:00:00 2001 From: wilco Date: Thu, 28 Mar 2019 09:37:22 -0700 Subject: [PATCH 13/14] Update operation ids. Opened bug MSAzure#4268142 to clean up operation ids across this swagger. --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 4 ++-- 1 file changed, 2 insertions(+), 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 30b7b4d5fec1..9e61b60649db 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 @@ -501,7 +501,7 @@ "$ref": "./examples/InvoiceSectionsListByBillingProfileName.json" } }, - "operationId": "InvoiceSectionsByBillingProfileName_List", + "operationId": "InvoiceSections_ListByBillingProfileName", "description": "Lists all invoice sections under a billing profile for a user which he has access to.", "parameters": [ { @@ -1914,7 +1914,7 @@ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/elevate": { "post": { "description": "Elevates the caller's access to match their billing profile access.", - "operationId": "BillingProfileInvoiceSection_Elevate", + "operationId": "InvoiceSection_ElevateToBillingProfile", "x-ms-examples": { "Elevate": { "$ref": "./examples/ElevateInvoiceSection.json" From 500edc5f2eb47bc507a3b25a61d575530ba33675 Mon Sep 17 00:00:00 2001 From: wilco Date: Thu, 28 Mar 2019 11:00:54 -0700 Subject: [PATCH 14/14] InvoiceSection_ElevateToBillingProfile -> InvoiceSections_ElevateToBillingProfile. --- .../Microsoft.Billing/preview/2018-11-01-preview/billing.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9e61b60649db..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 @@ -1914,7 +1914,7 @@ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/elevate": { "post": { "description": "Elevates the caller's access to match their billing profile access.", - "operationId": "InvoiceSection_ElevateToBillingProfile", + "operationId": "InvoiceSections_ElevateToBillingProfile", "x-ms-examples": { "Elevate": { "$ref": "./examples/ElevateInvoiceSection.json"