diff --git a/sdk/billing/arm-billing/LICENSE.txt b/sdk/billing/arm-billing/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/billing/arm-billing/LICENSE.txt +++ b/sdk/billing/arm-billing/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/billing/arm-billing/README.md b/sdk/billing/arm-billing/README.md index cd8267dc6804..f8cd80b80990 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/azure/cost-management-billing/) -* [SDK reference documentation](https://docs.microsoft.com/javascript/api/overview/azure/billing?view=azure-node-latest) - ### Currently supported environments - Node.js version 6.x.x or higher @@ -19,7 +15,7 @@ npm install @azure/arm-billing ### How to use -#### nodejs - Authentication, client creation and list billingAccounts as an example written in TypeScript. +#### nodejs - client creation and list billingAccounts as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -30,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { BillingManagementClient, BillingManagementModels, BillingManagementMappers } from "@azure/arm-billing"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { BillingManagementClient } = require("@azure/arm-billing"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/billing/arm-billing/rollup.config.js b/sdk/billing/arm-billing/rollup.config.js index e81d3ff3f6d5..41317863376f 100644 --- a/sdk/billing/arm-billing/rollup.config.js +++ b/sdk/billing/arm-billing/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/billingManagementClient.ts b/sdk/billing/arm-billing/src/billingManagementClient.ts index 2ff7dd105b67..94fe607b971d 100644 --- a/sdk/billing/arm-billing/src/billingManagementClient.ts +++ b/sdk/billing/arm-billing/src/billingManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/billingManagementClientContext.ts b/sdk/billing/arm-billing/src/billingManagementClientContext.ts index 66679df82359..35fcc57aed6e 100644 --- a/sdk/billing/arm-billing/src/billingManagementClientContext.ts +++ b/sdk/billing/arm-billing/src/billingManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/models/addressMappers.ts b/sdk/billing/arm-billing/src/models/addressMappers.ts index c320392736bf..8437c508fbcb 100644 --- a/sdk/billing/arm-billing/src/models/addressMappers.ts +++ b/sdk/billing/arm-billing/src/models/addressMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/agreementsMappers.ts b/sdk/billing/arm-billing/src/models/agreementsMappers.ts index 4bc985825a00..05a73be70b51 100644 --- a/sdk/billing/arm-billing/src/models/agreementsMappers.ts +++ b/sdk/billing/arm-billing/src/models/agreementsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts b/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts index 4d205df559cc..6ad23e0630fa 100644 --- a/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts +++ b/sdk/billing/arm-billing/src/models/availableBalancesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts b/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts index 6957dcc9fbed..4d6c847439cb 100644 --- a/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingAccountsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts b/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts index 3935d30e33f1..758a15d4d46a 100644 --- a/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPeriodsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingPermissionsMappers.ts b/sdk/billing/arm-billing/src/models/billingPermissionsMappers.ts index 3a1aa1c8b42d..efa7c1e17dda 100644 --- a/sdk/billing/arm-billing/src/models/billingPermissionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPermissionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts b/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts index 3cf76016d7d0..a5bc890cdf7a 100644 --- a/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingProfilesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts b/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts index 4d205df559cc..6ad23e0630fa 100644 --- a/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingPropertyOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts b/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts index 24fe849dce14..abfa9a7ef141 100644 --- a/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingRoleAssignmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts b/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts index d2d64596b47e..257780d31675 100644 --- a/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingRoleDefinitionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts b/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts index e85b7c9f9fab..d7719d919ef8 100644 --- a/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/billingSubscriptionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/customersMappers.ts b/sdk/billing/arm-billing/src/models/customersMappers.ts index c93d9f9d389d..cb34ae7470b8 100644 --- a/sdk/billing/arm-billing/src/models/customersMappers.ts +++ b/sdk/billing/arm-billing/src/models/customersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts b/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts index 0b4f12947350..8ccdabe80b2b 100644 --- a/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts +++ b/sdk/billing/arm-billing/src/models/enrollmentAccountsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/index.ts b/sdk/billing/arm-billing/src/models/index.ts index d0a95adb8ff7..a6c1825fb599 100644 --- a/sdk/billing/arm-billing/src/models/index.ts +++ b/sdk/billing/arm-billing/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -192,11 +192,15 @@ export interface TransferBillingSubscriptionRequestProperties { */ export interface ValidateSubscriptionTransferEligibilityError { /** - * Error code for the product transfer validation. Possible values include: 'InvalidSource', - * 'SubscriptionNotActive', 'InsufficientPermissionOnSource', - * 'InsufficientPermissionOnDestination', 'DestinationBillingProfilePastDue', - * 'SubscriptionTypeNotSupported', 'CrossBillingAccountNotAllowed', - * 'NotAvailableForDestinationMarket' + * Error code for the product transfer validation. Possible values include: + * 'BillingAccountInactive', 'CrossBillingAccountNotAllowed', + * 'DestinationBillingProfileInactive', 'DestinationBillingProfileNotFound', + * 'DestinationBillingProfilePastDue', 'DestinationInvoiceSectionInactive', + * 'DestinationInvoiceSectionNotFound', 'InsufficientPermissionOnDestination', + * 'InsufficientPermissionOnSource', 'InvalidDestination', 'InvalidSource', + * 'MarketplaceNotEnabledOnDestination', 'NotAvailableForDestinationMarket', 'ProductInactive', + * 'ProductNotFound', 'ProductTypeNotSupported', 'SourceBillingProfilePastDue', + * 'SourceInvoiceSectionInactive', 'SubscriptionNotActive', 'SubscriptionTypeNotSupported' */ code?: SubscriptionTransferValidationErrorCode; /** @@ -1879,6 +1883,16 @@ export interface BillingAccountsGetOptionalParams extends msRest.RequestOptionsB expand?: string; } +/** + * Optional Parameters. + */ +export interface BillingAccountsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to expand the soldTo, invoice sections and billing profiles. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -1899,6 +1913,16 @@ export interface BillingProfilesGetOptionalParams extends msRest.RequestOptionsB expand?: string; } +/** + * Optional Parameters. + */ +export interface BillingProfilesListByBillingAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to expand the invoice sections. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -1939,6 +1963,36 @@ export interface CustomersGetOptionalParams extends msRest.RequestOptionsBase { expand?: string; } +/** + * Optional Parameters. + */ +export interface CustomersListByBillingProfileNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Used for searching customers by their name. Any customer with name containing the search text + * will be included in the response + */ + search?: string; + /** + * May be used to filter the list of customers. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface CustomersListByBillingAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Used for searching customers by their name. Any customer with name containing the search text + * will be included in the response + */ + search?: string; + /** + * May be used to filter the list of customers. + */ + filter?: string; +} + /** * Optional Parameters. */ @@ -1995,6 +2049,42 @@ export interface ProductsValidateMoveOptionalParams extends msRest.RequestOption destinationInvoiceSectionId?: string; } +/** + * Optional Parameters. + */ +export interface ProductsListByBillingAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and + * 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair + * string where key and value are separated by a colon (:). + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ProductsListByBillingProfileNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and + * 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair + * string where key and value are separated by a colon (:). + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ProductsListByInvoiceSectionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and + * 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair + * string where key and value are separated by a colon (:). + */ + filter?: string; +} + /** * Optional Parameters. */ @@ -2036,6 +2126,16 @@ export interface AgreementsGetOptionalParams extends msRest.RequestOptionsBase { expand?: string; } +/** + * Optional Parameters. + */ +export interface AgreementsListByBillingAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to expand the participants. + */ + expand?: string; +} + /** * Optional Parameters. */ @@ -2057,6 +2157,27 @@ export interface BillingPeriodsListOptionalParams extends msRest.RequestOptionsB top?: number; } +/** + * Optional Parameters. + */ +export interface BillingPeriodsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', + * 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + */ + filter?: string; + /** + * Skiptoken is only used if a previous operation returned a partial result. If a previous + * response contains a nextLink element, the value of the nextLink element will include a + * skiptoken parameter that specifies a starting point to use for subsequent calls. + */ + skiptoken?: string; + /** + * May be used to limit the number of results to the most recent N billing periods. + */ + top?: number; +} + /** * An interface representing BillingManagementClientOptions. */ @@ -2110,9 +2231,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 +2261,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. */ @@ -2417,14 +2538,18 @@ export type AddressValidationStatus = 'Valid' | 'Invalid'; /** * Defines values for SubscriptionTransferValidationErrorCode. - * Possible values include: 'InvalidSource', 'SubscriptionNotActive', - * 'InsufficientPermissionOnSource', 'InsufficientPermissionOnDestination', - * 'DestinationBillingProfilePastDue', 'SubscriptionTypeNotSupported', - * 'CrossBillingAccountNotAllowed', 'NotAvailableForDestinationMarket' + * Possible values include: 'BillingAccountInactive', 'CrossBillingAccountNotAllowed', + * 'DestinationBillingProfileInactive', 'DestinationBillingProfileNotFound', + * 'DestinationBillingProfilePastDue', 'DestinationInvoiceSectionInactive', + * 'DestinationInvoiceSectionNotFound', 'InsufficientPermissionOnDestination', + * 'InsufficientPermissionOnSource', 'InvalidDestination', 'InvalidSource', + * 'MarketplaceNotEnabledOnDestination', 'NotAvailableForDestinationMarket', 'ProductInactive', + * 'ProductNotFound', 'ProductTypeNotSupported', 'SourceBillingProfilePastDue', + * 'SourceInvoiceSectionInactive', 'SubscriptionNotActive', 'SubscriptionTypeNotSupported' * @readonly * @enum {string} */ -export type SubscriptionTransferValidationErrorCode = 'InvalidSource' | 'SubscriptionNotActive' | 'InsufficientPermissionOnSource' | 'InsufficientPermissionOnDestination' | 'DestinationBillingProfilePastDue' | 'SubscriptionTypeNotSupported' | 'CrossBillingAccountNotAllowed' | 'NotAvailableForDestinationMarket'; +export type SubscriptionTransferValidationErrorCode = 'BillingAccountInactive' | 'CrossBillingAccountNotAllowed' | 'DestinationBillingProfileInactive' | 'DestinationBillingProfileNotFound' | 'DestinationBillingProfilePastDue' | 'DestinationInvoiceSectionInactive' | 'DestinationInvoiceSectionNotFound' | 'InsufficientPermissionOnDestination' | 'InsufficientPermissionOnSource' | 'InvalidDestination' | 'InvalidSource' | 'MarketplaceNotEnabledOnDestination' | 'NotAvailableForDestinationMarket' | 'ProductInactive' | 'ProductNotFound' | 'ProductTypeNotSupported' | 'SourceBillingProfilePastDue' | 'SourceInvoiceSectionInactive' | 'SubscriptionNotActive' | 'SubscriptionTypeNotSupported'; /** * Defines values for AgreementType. @@ -3974,9 +4099,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 +4109,7 @@ export type InvoicesDownloadMultipleModernInvoiceResponse = DownloadUrl & Invoic /** * The parsed HTTP response headers. */ - parsedHeaders: InvoicesDownloadMultipleModernInvoiceHeaders; + parsedHeaders: InvoicesDownloadMultipleBillingProfileInvoicesHeaders; /** * The response body as text (string format) @@ -4064,9 +4189,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 +4199,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/instructionsMappers.ts b/sdk/billing/arm-billing/src/models/instructionsMappers.ts index 42a58ed41495..9ebe61d774d2 100644 --- a/sdk/billing/arm-billing/src/models/instructionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/instructionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts b/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts index 71bb1946d80f..da0db1252ae3 100644 --- a/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoiceSectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/invoicesMappers.ts b/sdk/billing/arm-billing/src/models/invoicesMappers.ts index 7046ed5a5254..a9c6cd6770f6 100644 --- a/sdk/billing/arm-billing/src/models/invoicesMappers.ts +++ b/sdk/billing/arm-billing/src/models/invoicesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -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..e8d20148ec94 100644 --- a/sdk/billing/arm-billing/src/models/mappers.ts +++ b/sdk/billing/arm-billing/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -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/models/operationsMappers.ts b/sdk/billing/arm-billing/src/models/operationsMappers.ts index 0cdca205a6a8..3e65cef43e47 100644 --- a/sdk/billing/arm-billing/src/models/operationsMappers.ts +++ b/sdk/billing/arm-billing/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/parameters.ts b/sdk/billing/arm-billing/src/models/parameters.ts index 66a2e083babb..f4bd5b726cf1 100644 --- a/sdk/billing/arm-billing/src/models/parameters.ts +++ b/sdk/billing/arm-billing/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/models/policiesMappers.ts b/sdk/billing/arm-billing/src/models/policiesMappers.ts index 4d205df559cc..6ad23e0630fa 100644 --- a/sdk/billing/arm-billing/src/models/policiesMappers.ts +++ b/sdk/billing/arm-billing/src/models/policiesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/productsMappers.ts b/sdk/billing/arm-billing/src/models/productsMappers.ts index 2c80d301a739..be3c3afd2798 100644 --- a/sdk/billing/arm-billing/src/models/productsMappers.ts +++ b/sdk/billing/arm-billing/src/models/productsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/models/transactionsMappers.ts b/sdk/billing/arm-billing/src/models/transactionsMappers.ts index 560b58ff4d8a..96e1f26d2d8e 100644 --- a/sdk/billing/arm-billing/src/models/transactionsMappers.ts +++ b/sdk/billing/arm-billing/src/models/transactionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/billing/arm-billing/src/operations/address.ts b/sdk/billing/arm-billing/src/operations/address.ts index 9b9dd05d15b0..7e28f52c5a71 100644 --- a/sdk/billing/arm-billing/src/operations/address.ts +++ b/sdk/billing/arm-billing/src/operations/address.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/operations/agreements.ts b/sdk/billing/arm-billing/src/operations/agreements.ts index 09431e913194..3124947cd77a 100644 --- a/sdk/billing/arm-billing/src/operations/agreements.ts +++ b/sdk/billing/arm-billing/src/operations/agreements.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -92,7 +91,7 @@ export class Agreements { * @param [options] The optional parameters * @returns Promise */ - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingAccountNext(nextPageLink: string, options?: Models.AgreementsListByBillingAccountNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -103,8 +102,8 @@ export class Agreements { * @param options The optional parameters * @param callback The callback */ - listByBillingAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingAccountNext(nextPageLink: string, options: Models.AgreementsListByBillingAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, options?: Models.AgreementsListByBillingAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -173,6 +172,10 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/availableBalances.ts b/sdk/billing/arm-billing/src/operations/availableBalances.ts index 68f4e14e75b1..f9fa43cbf6c4 100644 --- a/sdk/billing/arm-billing/src/operations/availableBalances.ts +++ b/sdk/billing/arm-billing/src/operations/availableBalances.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/operations/billingAccounts.ts b/sdk/billing/arm-billing/src/operations/billingAccounts.ts index 367e7593f7b2..f1d3fdcc89f4 100644 --- a/sdk/billing/arm-billing/src/operations/billingAccounts.ts +++ b/sdk/billing/arm-billing/src/operations/billingAccounts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -150,7 +149,7 @@ export class BillingAccounts { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BillingAccountsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -161,8 +160,8 @@ export class BillingAccounts { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BillingAccountsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BillingAccountsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -312,6 +311,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], @@ -333,6 +336,9 @@ const listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec: msRest urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/billingPeriods.ts b/sdk/billing/arm-billing/src/operations/billingPeriods.ts index 9d94d474ef38..9ab13dd315da 100644 --- a/sdk/billing/arm-billing/src/operations/billingPeriods.ts +++ b/sdk/billing/arm-billing/src/operations/billingPeriods.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -90,7 +89,7 @@ export class BillingPeriods { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BillingPeriodsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -101,8 +100,8 @@ export class BillingPeriods { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.BillingPeriodsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BillingPeriodsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -172,6 +171,12 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skiptoken, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/billingPermissions.ts b/sdk/billing/arm-billing/src/operations/billingPermissions.ts index c3bb0d007312..56a06de7e365 100644 --- a/sdk/billing/arm-billing/src/operations/billingPermissions.ts +++ b/sdk/billing/arm-billing/src/operations/billingPermissions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -372,6 +371,9 @@ const listByCustomerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -393,6 +395,9 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -414,6 +419,9 @@ const listByInvoiceSectionsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -435,6 +443,9 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/billingProfiles.ts b/sdk/billing/arm-billing/src/operations/billingProfiles.ts index 8d25a624f5c9..35ef6e0334f9 100644 --- a/sdk/billing/arm-billing/src/operations/billingProfiles.ts +++ b/sdk/billing/arm-billing/src/operations/billingProfiles.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -131,7 +130,7 @@ export class BillingProfiles { * @param [options] The optional parameters * @returns Promise */ - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingAccountNext(nextPageLink: string, options?: Models.BillingProfilesListByBillingAccountNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -142,8 +141,8 @@ export class BillingProfiles { * @param options The optional parameters * @param callback The callback */ - listByBillingAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingAccountNext(nextPageLink: string, options: Models.BillingProfilesListByBillingAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, options?: Models.BillingProfilesListByBillingAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -248,6 +247,10 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts b/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts index 38d443dce27b..29be8cc9bbbb 100644 --- a/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts +++ b/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts b/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts index d81abf2b71fc..720714c297d0 100644 --- a/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts +++ b/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -672,6 +671,9 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -693,6 +695,9 @@ const listByInvoiceSectionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -714,6 +719,9 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/billingRoleDefinitions.ts b/sdk/billing/arm-billing/src/operations/billingRoleDefinitions.ts index 146cb9771397..170abc5cd6c3 100644 --- a/sdk/billing/arm-billing/src/operations/billingRoleDefinitions.ts +++ b/sdk/billing/arm-billing/src/operations/billingRoleDefinitions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -480,6 +479,9 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -501,6 +503,9 @@ const listByInvoiceSectionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -522,6 +527,9 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts b/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts index 8bfa5ee88e66..25db2657e48a 100644 --- a/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts +++ b/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -642,6 +641,9 @@ const listByCustomerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -663,6 +665,9 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -684,6 +689,9 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -705,6 +713,9 @@ const listByInvoiceSectionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/customers.ts b/sdk/billing/arm-billing/src/operations/customers.ts index d2d99e8c1654..92fce7b2e55e 100644 --- a/sdk/billing/arm-billing/src/operations/customers.ts +++ b/sdk/billing/arm-billing/src/operations/customers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -128,7 +127,7 @@ export class Customers { * @param [options] The optional parameters * @returns Promise */ - listByBillingProfileNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingProfileNext(nextPageLink: string, options?: Models.CustomersListByBillingProfileNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -139,8 +138,8 @@ export class Customers { * @param options The optional parameters * @param callback The callback */ - listByBillingProfileNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingProfileNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingProfileNext(nextPageLink: string, options: Models.CustomersListByBillingProfileNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingProfileNext(nextPageLink: string, options?: Models.CustomersListByBillingProfileNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -157,7 +156,7 @@ export class Customers { * @param [options] The optional parameters * @returns Promise */ - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingAccountNext(nextPageLink: string, options?: Models.CustomersListByBillingAccountNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -168,8 +167,8 @@ export class Customers { * @param options The optional parameters * @param callback The callback */ - listByBillingAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingAccountNext(nextPageLink: string, options: Models.CustomersListByBillingAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, options?: Models.CustomersListByBillingAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -265,6 +264,11 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.search, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -286,6 +290,11 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.search, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts b/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts index aa1077f845c2..c1a5f3b85870 100644 --- a/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts +++ b/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -159,6 +158,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/index.ts b/sdk/billing/arm-billing/src/operations/index.ts index 5ef3c67c4d81..ce3096ab72a4 100644 --- a/sdk/billing/arm-billing/src/operations/index.ts +++ b/sdk/billing/arm-billing/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/operations/instructions.ts b/sdk/billing/arm-billing/src/operations/instructions.ts index 91c029f8aad3..60c9c057de51 100644 --- a/sdk/billing/arm-billing/src/operations/instructions.ts +++ b/sdk/billing/arm-billing/src/operations/instructions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -255,6 +254,9 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/invoiceSections.ts b/sdk/billing/arm-billing/src/operations/invoiceSections.ts index 40016fb1e056..b8337ac8a531 100644 --- a/sdk/billing/arm-billing/src/operations/invoiceSections.ts +++ b/sdk/billing/arm-billing/src/operations/invoiceSections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -260,6 +259,9 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/invoices.ts b/sdk/billing/arm-billing/src/operations/invoices.ts index 1bb1bbd5f8a3..60d7de2db02e 100644 --- a/sdk/billing/arm-billing/src/operations/invoices.ts +++ b/sdk/billing/arm-billing/src/operations/invoices.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -196,17 +195,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 +281,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 +314,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 +352,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); } @@ -374,25 +373,39 @@ export class Invoices { * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft * Customer Agreement. * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate The start date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. + * @param periodEndDate The end date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. * @param [options] The optional parameters * @returns Promise */ - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingAccountNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate The start date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. + * @param periodEndDate The end date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. * @param callback The callback */ - listByBillingAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate The start date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. + * @param periodEndDate The end date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. * @param options The optional parameters * @param callback The callback */ - listByBillingAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingAccountNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, + periodStartDate, + periodEndDate, options }, listByBillingAccountNextOperationSpec, @@ -404,25 +417,39 @@ export class Invoices { * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft * Customer Agreement. * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate The start date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. + * @param periodEndDate The end date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. * @param [options] The optional parameters * @returns Promise */ - listByBillingProfileNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingProfileNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate The start date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. + * @param periodEndDate The end date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. * @param callback The callback */ - listByBillingProfileNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByBillingProfileNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate The start date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. + * @param periodEndDate The end date to fetch the invoices. The date should be specified in + * MM-DD-YYYY format. * @param options The optional parameters * @param callback The callback */ - listByBillingProfileNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingProfileNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingProfileNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByBillingProfileNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, + periodStartDate, + periodEndDate, options }, listByBillingProfileNextOperationSpec, @@ -432,25 +459,33 @@ export class Invoices { /** * Lists the invoices for a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate Invoice period start date. + * @param periodEndDate Invoice period end date. * @param [options] The optional parameters * @returns Promise */ - listByBillingSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingSubscriptionNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate Invoice period start date. + * @param periodEndDate Invoice period end date. * @param callback The callback */ - listByBillingSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByBillingSubscriptionNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param periodStartDate Invoice period start date. + * @param periodEndDate Invoice period end date. * @param options The optional parameters * @param callback The callback */ - listByBillingSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingSubscriptionNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByBillingSubscriptionNext(nextPageLink: string, periodStartDate: string, periodEndDate: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, + periodStartDate, + periodEndDate, options }, listByBillingSubscriptionNextOperationSpec, @@ -637,7 +672,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 +702,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 +745,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 +775,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 @@ -760,6 +795,11 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.periodStartDate, + Parameters.periodEndDate + ], headerParameters: [ Parameters.acceptLanguage ], @@ -781,6 +821,11 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.periodStartDate, + Parameters.periodEndDate + ], headerParameters: [ Parameters.acceptLanguage ], @@ -802,6 +847,11 @@ const listByBillingSubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.periodStartDate, + Parameters.periodEndDate, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/operations.ts b/sdk/billing/arm-billing/src/operations/operations.ts index fdc8c21841a6..d2af7f52e37b 100644 --- a/sdk/billing/arm-billing/src/operations/operations.ts +++ b/sdk/billing/arm-billing/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/policies.ts b/sdk/billing/arm-billing/src/operations/policies.ts index 7099e7f4bb49..8fe3607fd75f 100644 --- a/sdk/billing/arm-billing/src/operations/policies.ts +++ b/sdk/billing/arm-billing/src/operations/policies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/billing/arm-billing/src/operations/products.ts b/sdk/billing/arm-billing/src/operations/products.ts index e493f2fc0e84..feb3994cc550 100644 --- a/sdk/billing/arm-billing/src/operations/products.ts +++ b/sdk/billing/arm-billing/src/operations/products.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -339,7 +338,7 @@ export class Products { * @param [options] The optional parameters * @returns Promise */ - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingAccountNext(nextPageLink: string, options?: Models.ProductsListByBillingAccountNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -350,8 +349,8 @@ export class Products { * @param options The optional parameters * @param callback The callback */ - listByBillingAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingAccountNext(nextPageLink: string, options: Models.ProductsListByBillingAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, options?: Models.ProductsListByBillingAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -369,7 +368,7 @@ export class Products { * @param [options] The optional parameters * @returns Promise */ - listByBillingProfileNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByBillingProfileNext(nextPageLink: string, options?: Models.ProductsListByBillingProfileNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -380,8 +379,8 @@ export class Products { * @param options The optional parameters * @param callback The callback */ - listByBillingProfileNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByBillingProfileNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByBillingProfileNext(nextPageLink: string, options: Models.ProductsListByBillingProfileNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingProfileNext(nextPageLink: string, options?: Models.ProductsListByBillingProfileNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -399,7 +398,7 @@ export class Products { * @param [options] The optional parameters * @returns Promise */ - listByInvoiceSectionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByInvoiceSectionNext(nextPageLink: string, options?: Models.ProductsListByInvoiceSectionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -410,8 +409,8 @@ export class Products { * @param options The optional parameters * @param callback The callback */ - listByInvoiceSectionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInvoiceSectionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByInvoiceSectionNext(nextPageLink: string, options: Models.ProductsListByInvoiceSectionNextOptionalParams, callback: msRest.ServiceCallback): void; + listByInvoiceSectionNext(nextPageLink: string, options?: Models.ProductsListByInvoiceSectionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -662,6 +661,9 @@ const listByCustomerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -683,6 +685,10 @@ const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -704,6 +710,10 @@ const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -725,6 +735,10 @@ const listByInvoiceSectionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/billing/arm-billing/src/operations/transactions.ts b/sdk/billing/arm-billing/src/operations/transactions.ts index e447f25ebe35..6f87cd3370dd 100644 --- a/sdk/billing/arm-billing/src/operations/transactions.ts +++ b/sdk/billing/arm-billing/src/operations/transactions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -122,6 +121,9 @@ const listByInvoiceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ],