diff --git a/sdk/billing/arm-billing/README.md b/sdk/billing/arm-billing/README.md index c4b12026cdae..062da389b04a 100644 --- a/sdk/billing/arm-billing/README.md +++ b/sdk/billing/arm-billing/README.md @@ -2,10 +2,6 @@ This package contains an isomorphic SDK for BillingManagementClient. -For more information about Billing: -* [Azure documentation](https://docs.microsoft.com/en-us/azure/cost-management-billing/) -* [SDK reference documentation](https://docs.microsoft.com/en-us/javascript/api/overview/azure/billing?view=azure-node-latest) - ### Currently supported environments - Node.js version 6.x.x or higher diff --git a/sdk/billing/arm-billing/src/models/index.ts b/sdk/billing/arm-billing/src/models/index.ts index d0a95adb8ff7..d5a76e3a14f9 100644 --- a/sdk/billing/arm-billing/src/models/index.ts +++ b/sdk/billing/arm-billing/src/models/index.ts @@ -2110,9 +2110,9 @@ export interface InvoicesDownloadInvoiceHeaders { } /** - * Defines headers for DownloadMultipleModernInvoice operation. + * Defines headers for DownloadMultipleBillingProfileInvoices operation. */ -export interface InvoicesDownloadMultipleModernInvoiceHeaders { +export interface InvoicesDownloadMultipleBillingProfileInvoicesHeaders { /** * GET this URL to retrieve the status of the asynchronous operation. */ @@ -2140,9 +2140,9 @@ export interface InvoicesDownloadBillingSubscriptionInvoiceHeaders { } /** - * Defines headers for DownloadMultipleBillingSubscriptionInvoice operation. + * Defines headers for DownloadMultipleBillingSubscriptionInvoices operation. */ -export interface InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders { +export interface InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders { /** * GET this URL to retrieve the status of the asynchronous operation. */ @@ -3974,9 +3974,9 @@ export type InvoicesDownloadInvoiceResponse = DownloadUrl & InvoicesDownloadInvo }; /** - * Contains response data for the downloadMultipleModernInvoice operation. + * Contains response data for the downloadMultipleBillingProfileInvoices operation. */ -export type InvoicesDownloadMultipleModernInvoiceResponse = DownloadUrl & InvoicesDownloadMultipleModernInvoiceHeaders & { +export type InvoicesDownloadMultipleBillingProfileInvoicesResponse = DownloadUrl & InvoicesDownloadMultipleBillingProfileInvoicesHeaders & { /** * The underlying HTTP response. */ @@ -3984,7 +3984,7 @@ export type InvoicesDownloadMultipleModernInvoiceResponse = DownloadUrl & Invoic /** * The parsed HTTP response headers. */ - parsedHeaders: InvoicesDownloadMultipleModernInvoiceHeaders; + parsedHeaders: InvoicesDownloadMultipleBillingProfileInvoicesHeaders; /** * The response body as text (string format) @@ -4064,9 +4064,9 @@ export type InvoicesDownloadBillingSubscriptionInvoiceResponse = DownloadUrl & I }; /** - * Contains response data for the downloadMultipleBillingSubscriptionInvoice operation. + * Contains response data for the downloadMultipleBillingSubscriptionInvoices operation. */ -export type InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse = DownloadUrl & InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders & { +export type InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse = DownloadUrl & InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders & { /** * The underlying HTTP response. */ @@ -4074,7 +4074,7 @@ export type InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse = Downloa /** * The parsed HTTP response headers. */ - parsedHeaders: InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders; + parsedHeaders: InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders; /** * The response body as text (string format) diff --git a/sdk/billing/arm-billing/src/models/invoicesMappers.ts b/sdk/billing/arm-billing/src/models/invoicesMappers.ts index 7046ed5a5254..7a0c3ea2c46f 100644 --- a/sdk/billing/arm-billing/src/models/invoicesMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoicesMappers.ts @@ -40,8 +40,8 @@ export { InvoiceListResult, InvoicesDownloadBillingSubscriptionInvoiceHeaders, InvoicesDownloadInvoiceHeaders, - InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders, - InvoicesDownloadMultipleModernInvoiceHeaders, + InvoicesDownloadMultipleBillingProfileInvoicesHeaders, + InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders, InvoiceSection, InvoiceSectionsOnExpand, Participants, diff --git a/sdk/billing/arm-billing/src/models/mappers.ts b/sdk/billing/arm-billing/src/models/mappers.ts index c6c6f05e5db6..8e276b0972aa 100644 --- a/sdk/billing/arm-billing/src/models/mappers.ts +++ b/sdk/billing/arm-billing/src/models/mappers.ts @@ -2902,11 +2902,11 @@ export const InvoicesDownloadInvoiceHeaders: msRest.CompositeMapper = { } }; -export const InvoicesDownloadMultipleModernInvoiceHeaders: msRest.CompositeMapper = { - serializedName: "invoices-downloadmultiplemoderninvoice-headers", +export const InvoicesDownloadMultipleBillingProfileInvoicesHeaders: msRest.CompositeMapper = { + serializedName: "invoices-downloadmultiplebillingprofileinvoices-headers", type: { name: "Composite", - className: "InvoicesDownloadMultipleModernInvoiceHeaders", + className: "InvoicesDownloadMultipleBillingProfileInvoicesHeaders", modelProperties: { location: { serializedName: "location", @@ -2946,11 +2946,11 @@ export const InvoicesDownloadBillingSubscriptionInvoiceHeaders: msRest.Composite } }; -export const InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders: msRest.CompositeMapper = { - serializedName: "invoices-downloadmultiplebillingsubscriptioninvoice-headers", +export const InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders: msRest.CompositeMapper = { + serializedName: "invoices-downloadmultiplebillingsubscriptioninvoices-headers", type: { name: "Composite", - className: "InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders", + className: "InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders", modelProperties: { location: { serializedName: "location", diff --git a/sdk/billing/arm-billing/src/operations/invoices.ts b/sdk/billing/arm-billing/src/operations/invoices.ts index 1bb1bbd5f8a3..2aa0c0e8d51c 100644 --- a/sdk/billing/arm-billing/src/operations/invoices.ts +++ b/sdk/billing/arm-billing/src/operations/invoices.ts @@ -196,17 +196,17 @@ export class Invoices { } /** - * Gets a URL to download an multiple invoices documents (invoice pdf, tax receipts, credit notes) - * as a zip file. The operation is supported for billing accounts with agreement type Microsoft - * Partner Agreement or Microsoft Customer Agreement. + * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a + * zip file. The operation is supported for billing accounts with agreement type Microsoft Partner + * Agreement or Microsoft Customer Agreement. * @param billingAccountName The ID that uniquely identifies a billing account. * @param downloadUrls An array of download urls for individual documents * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - downloadMultipleModernInvoice(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { - return this.beginDownloadMultipleModernInvoice(billingAccountName,downloadUrls,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + downloadMultipleBillingProfileInvoices(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { + return this.beginDownloadMultipleBillingProfileInvoices(billingAccountName,downloadUrls,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -282,15 +282,15 @@ export class Invoices { } /** - * Gets a URL to download multiple invoices documents (invoice pdf, tax receipts, credit notes) as - * a zip file. + * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a + * zip file. * @param downloadUrls An array of download urls for individual documents * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - downloadMultipleBillingSubscriptionInvoice(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { - return this.beginDownloadMultipleBillingSubscriptionInvoice(downloadUrls,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + downloadMultipleBillingSubscriptionInvoices(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { + return this.beginDownloadMultipleBillingSubscriptionInvoices(downloadUrls,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -315,22 +315,22 @@ export class Invoices { } /** - * Gets a URL to download an multiple invoices documents (invoice pdf, tax receipts, credit notes) - * as a zip file. The operation is supported for billing accounts with agreement type Microsoft - * Partner Agreement or Microsoft Customer Agreement. + * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a + * zip file. The operation is supported for billing accounts with agreement type Microsoft Partner + * Agreement or Microsoft Customer Agreement. * @param billingAccountName The ID that uniquely identifies a billing account. * @param downloadUrls An array of download urls for individual documents * @param [options] The optional parameters * @returns Promise */ - beginDownloadMultipleModernInvoice(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { + beginDownloadMultipleBillingProfileInvoices(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { billingAccountName, downloadUrls, options }, - beginDownloadMultipleModernInvoiceOperationSpec, + beginDownloadMultipleBillingProfileInvoicesOperationSpec, options); } @@ -353,19 +353,19 @@ export class Invoices { } /** - * Gets a URL to download multiple invoices documents (invoice pdf, tax receipts, credit notes) as - * a zip file. + * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a + * zip file. * @param downloadUrls An array of download urls for individual documents * @param [options] The optional parameters * @returns Promise */ - beginDownloadMultipleBillingSubscriptionInvoice(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { + beginDownloadMultipleBillingSubscriptionInvoices(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { downloadUrls, options }, - beginDownloadMultipleBillingSubscriptionInvoiceOperationSpec, + beginDownloadMultipleBillingSubscriptionInvoicesOperationSpec, options); } @@ -637,7 +637,7 @@ const beginDownloadInvoiceOperationSpec: msRest.OperationSpec = { serializer }; -const beginDownloadMultipleModernInvoiceOperationSpec: msRest.OperationSpec = { +const beginDownloadMultipleBillingProfileInvoicesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments", urlParameters: [ @@ -667,14 +667,14 @@ const beginDownloadMultipleModernInvoiceOperationSpec: msRest.OperationSpec = { responses: { 200: { bodyMapper: Mappers.DownloadUrl, - headersMapper: Mappers.InvoicesDownloadMultipleModernInvoiceHeaders + headersMapper: Mappers.InvoicesDownloadMultipleBillingProfileInvoicesHeaders }, 202: { - headersMapper: Mappers.InvoicesDownloadMultipleModernInvoiceHeaders + headersMapper: Mappers.InvoicesDownloadMultipleBillingProfileInvoicesHeaders }, default: { bodyMapper: Mappers.ErrorResponse, - headersMapper: Mappers.InvoicesDownloadMultipleModernInvoiceHeaders + headersMapper: Mappers.InvoicesDownloadMultipleBillingProfileInvoicesHeaders } }, serializer @@ -710,7 +710,7 @@ const beginDownloadBillingSubscriptionInvoiceOperationSpec: msRest.OperationSpec serializer }; -const beginDownloadMultipleBillingSubscriptionInvoiceOperationSpec: msRest.OperationSpec = { +const beginDownloadMultipleBillingSubscriptionInvoicesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments", urlParameters: [ @@ -740,14 +740,14 @@ const beginDownloadMultipleBillingSubscriptionInvoiceOperationSpec: msRest.Opera responses: { 200: { bodyMapper: Mappers.DownloadUrl, - headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders + headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders }, 202: { - headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders + headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders }, default: { bodyMapper: Mappers.ErrorResponse, - headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders + headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders } }, serializer