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..e429d00c237e 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 @@ -35,6 +34,7 @@ class BillingManagementClient extends BillingManagementClientContext { billingRoleDefinitions: operations.BillingRoleDefinitions; billingRoleAssignments: operations.BillingRoleAssignments; agreements: operations.Agreements; + reservations: operations.Reservations; enrollmentAccounts: operations.EnrollmentAccounts; billingPeriods: operations.BillingPeriods; @@ -64,6 +64,7 @@ class BillingManagementClient extends BillingManagementClientContext { this.billingRoleDefinitions = new operations.BillingRoleDefinitions(this); this.billingRoleAssignments = new operations.BillingRoleAssignments(this); this.agreements = new operations.Agreements(this); + this.reservations = new operations.Reservations(this); this.enrollmentAccounts = new operations.EnrollmentAccounts(this); this.billingPeriods = new operations.BillingPeriods(this); } 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..711287018240 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. @@ -99,6 +99,10 @@ export interface AddressDetails { * First name. */ firstName?: string; + /** + * Middle name. + */ + middleName?: string; /** * Last name. */ @@ -192,11 +196,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; /** @@ -375,6 +383,10 @@ export interface BillingProfile extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly targetClouds?: TargetCloud[]; + /** + * Tags of billing profiles. + */ + tags?: { [propertyName: string]: string }; } /** @@ -413,7 +425,7 @@ export interface EnrollmentPolicies { * The policy that controls whether Azure marketplace purchases are allowed in the enrollment. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly marketplacesEnabled?: boolean; + readonly marketplaceEnabled?: boolean; /** * The policy that controls whether Azure reservation purchases are allowed in the enrollment. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -486,6 +498,10 @@ export interface EnrollmentAccount extends Resource { * The owner of the enrollment account. */ accountOwner?: string; + /** + * The enrollment account owner email address. + */ + accountOwnerEmail?: string; /** * The status of the enrollment account. */ @@ -580,6 +596,10 @@ export interface BillingAccount extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hasReadAccess?: boolean; + /** + * Notification email address, only for legacy accounts + */ + notificationEmailAddress?: string; } /** @@ -635,6 +655,10 @@ export interface BillingAccountUpdateRequest { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hasReadAccess?: boolean; + /** + * Notification email address, only for legacy accounts + */ + notificationEmailAddress?: string; } /** @@ -1660,6 +1684,11 @@ export interface OperationDisplay { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; + /** + * Description of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; } /** @@ -1671,6 +1700,11 @@ export interface Operation { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; + /** + * Identifies if the operation is a data operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isDataAction?: boolean; /** * The object that represents the operation. */ @@ -1796,7 +1830,8 @@ export interface Agreement extends Resource { readonly agreementLink?: string; /** * The category of the agreement signed by a customer. Possible values include: - * 'MicrosoftCustomerAgreement', 'AffiliatePurchaseTerms', 'Other' + * 'AffiliatePurchaseTerms', 'IndirectForGovernmentAgreement', 'MicrosoftCustomerAgreement', + * 'MicrosoftPartnerAgreement', 'Other', 'UKCloudComputeFramework' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly category?: Category; @@ -1827,6 +1862,209 @@ export interface Agreement extends Resource { readonly status?: string; } +/** + * The property of reservation sku object. + */ +export interface ReservationSkuProperty { + /** + * The name of the reservation sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; +} + +/** + * The aggregate values of reservation utilization + */ +export interface ReservationUtilizationAggregates { + /** + * The grain of the aggregate + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grain?: number; + /** + * The grain unit of the aggregate + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grainUnit?: string; + /** + * The aggregate value + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: number; + /** + * The aggregate value unit + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly valueUnit?: string; +} + +/** + * Reservation utilization + */ +export interface ReservationPropertyUtilization { + /** + * The number of days trend for a reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly trend?: string; + /** + * The array of aggregates of a reservation's utilization + */ + aggregates?: ReservationUtilizationAggregates[]; +} + +/** + * The definition of the reservation. + */ +export interface Reservation { + /** + * The id of the reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The location of the reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The sku information associated to this reservation + */ + sku?: ReservationSkuProperty; + /** + * The array of applied scopes of a reservation. Will be null if the reservation is in Shared + * scope + */ + appliedScopes?: string[]; + /** + * The applied scope type of the reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly appliedScopeType?: string; + /** + * The reserved source type of the reservation, e.g. virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservedResourceType?: string; + /** + * The number of the reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly quantity?: number; + /** + * The provisioning state of the reservation, e.g. Succeeded + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The expiry date of the reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expiryDate?: string; + /** + * The provisioning state of the reservation, e.g. Succeeded + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningSubState?: string; + /** + * The display name of the reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * The provisioning state of the reservation for display, e.g. Succeeded + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayProvisioningState?: string; + /** + * The renew state of the reservation for display, e.g. On + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userFriendlyRenewState?: string; + /** + * The applied scope type of the reservation for display, e.g. Shared + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userFriendlyAppliedScopeType?: string; + /** + * The effective date time of the reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly effectiveDateTime?: string; + /** + * The sku description of the reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skuDescription?: string; + /** + * The term of the reservation, e.g. P1Y + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly term?: string; + /** + * The renew state of the reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly renew?: boolean; + /** + * The renew source of the reservation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly renewSource?: string; + /** + * Reservation utilization + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly utilization?: ReservationPropertyUtilization; +} + +/** + * The roll up count summary of reservations in each state + */ +export interface ReservationSummary { + /** + * The number of reservation in Succeeded state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly succeededCount?: number; + /** + * The number of reservation in Failed state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedCount?: number; + /** + * The number of reservation in Expiring state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expiringCount?: number; + /** + * The number of reservation in Expired state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expiredCount?: number; + /** + * The number of reservation in Pending state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly pendingCount?: number; + /** + * The number of reservation in Cancelled state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cancelledCount?: number; +} + /** * An enrollment account resource. */ @@ -1879,6 +2117,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 +2147,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 +2197,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 +2283,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 +2360,112 @@ 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. + */ +export interface ReservationsListByBillingAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It + * does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. + */ + filter?: string; + /** + * May be used to sort order by reservation properties. + */ + orderby?: string; + /** + * To indicate whether to refresh the roll up counts of the reservations group by provisioning + * states + */ + refreshSummary?: string; + /** + * The selected provisioning state + */ + selectedState?: string; +} + +/** + * Optional Parameters. + */ +export interface ReservationsListByBillingProfileOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It + * does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. + */ + filter?: string; + /** + * May be used to sort order by reservation properties. + */ + orderby?: string; + /** + * To indicate whether to refresh the roll up counts of the reservations group by provisioning + * state + */ + refreshSummary?: string; + /** + * The selected provisioning state + */ + selectedState?: string; +} + +/** + * Optional Parameters. + */ +export interface ReservationsListByBillingAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It + * does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. + */ + filter?: string; + /** + * May be used to sort order by reservation properties. + */ + orderby?: string; + /** + * To indicate whether to refresh the roll up counts of the reservations group by provisioning + * states + */ + refreshSummary?: string; + /** + * The selected provisioning state + */ + selectedState?: string; +} + +/** + * Optional Parameters. + */ +export interface ReservationsListByBillingProfileNextOptionalParams extends msRest.RequestOptionsBase { + /** + * May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It + * does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. + */ + filter?: string; + /** + * May be used to sort order by reservation properties. + */ + orderby?: string; + /** + * To indicate whether to refresh the roll up counts of the reservations group by provisioning + * state + */ + refreshSummary?: string; + /** + * The selected provisioning state + */ + selectedState?: string; +} + /** * Optional Parameters. */ @@ -2057,6 +2487,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 +2561,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 +2591,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. */ @@ -2242,6 +2693,11 @@ export interface BillingProfileListResult extends Array { * @extends Array */ export interface CustomerListResult extends Array { + /** + * Total number of records. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalCount?: number; /** * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2255,6 +2711,11 @@ export interface CustomerListResult extends Array { * @extends Array */ export interface InvoiceSectionListResult extends Array { + /** + * Total number of records. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalCount?: number; /** * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2281,6 +2742,11 @@ export interface BillingPermissionsListResult extends Array */ export interface BillingSubscriptionsListResult extends Array { + /** + * Total number of records. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalCount?: number; /** * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2380,6 +2846,23 @@ export interface AgreementListResult extends Array { readonly nextLink?: string; } +/** + * @interface + * The list of reservations and summary of roll out count of reservations in each state. + * @extends Array + */ +export interface ReservationsListResult extends Array { + /** + * The link (url) to the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; + /** + * The roll out count summary of the reservations + */ + summary?: ReservationSummary; +} + /** * @interface * Result of listing enrollment accounts. @@ -2417,14 +2900,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. @@ -2674,11 +3161,12 @@ export type ViewCharges = 'Allowed' | 'NotAllowed'; /** * Defines values for Category. - * Possible values include: 'MicrosoftCustomerAgreement', 'AffiliatePurchaseTerms', 'Other' + * Possible values include: 'AffiliatePurchaseTerms', 'IndirectForGovernmentAgreement', + * 'MicrosoftCustomerAgreement', 'MicrosoftPartnerAgreement', 'Other', 'UKCloudComputeFramework' * @readonly * @enum {string} */ -export type Category = 'MicrosoftCustomerAgreement' | 'AffiliatePurchaseTerms' | 'Other'; +export type Category = 'AffiliatePurchaseTerms' | 'IndirectForGovernmentAgreement' | 'MicrosoftCustomerAgreement' | 'MicrosoftPartnerAgreement' | 'Other' | 'UKCloudComputeFramework'; /** * Defines values for AcceptanceMode. @@ -3974,9 +4462,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 +4472,7 @@ export type InvoicesDownloadMultipleModernInvoiceResponse = DownloadUrl & Invoic /** * The parsed HTTP response headers. */ - parsedHeaders: InvoicesDownloadMultipleModernInvoiceHeaders; + parsedHeaders: InvoicesDownloadMultipleBillingProfileInvoicesHeaders; /** * The response body as text (string format) @@ -4064,9 +4552,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 +4562,7 @@ export type InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse = Downloa /** * The parsed HTTP response headers. */ - parsedHeaders: InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders; + parsedHeaders: InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders; /** * The response body as text (string format) @@ -4828,6 +5316,86 @@ export type AgreementsListByBillingAccountNextResponse = AgreementListResult & { }; }; +/** + * Contains response data for the listByBillingAccount operation. + */ +export type ReservationsListByBillingAccountResponse = ReservationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationsListResult; + }; +}; + +/** + * Contains response data for the listByBillingProfile operation. + */ +export type ReservationsListByBillingProfileResponse = ReservationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationsListResult; + }; +}; + +/** + * Contains response data for the listByBillingAccountNext operation. + */ +export type ReservationsListByBillingAccountNextResponse = ReservationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationsListResult; + }; +}; + +/** + * Contains response data for the listByBillingProfileNext operation. + */ +export type ReservationsListByBillingProfileNextResponse = ReservationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationsListResult; + }; +}; + /** * Contains response data for the list operation. */ 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..e034b6825e93 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. @@ -157,6 +157,12 @@ export const AddressDetails: msRest.CompositeMapper = { name: "String" } }, + middleName: { + serializedName: "middleName", + type: { + name: "String" + } + }, lastName: { serializedName: "lastName", type: { @@ -586,6 +592,17 @@ export const BillingProfile: msRest.CompositeMapper = { } } } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } @@ -640,9 +657,9 @@ export const EnrollmentPolicies: msRest.CompositeMapper = { name: "Boolean" } }, - marketplacesEnabled: { + marketplaceEnabled: { readOnly: true, - serializedName: "marketplacesEnabled", + serializedName: "marketplaceEnabled", type: { name: "Boolean" } @@ -755,6 +772,12 @@ export const EnrollmentAccount: msRest.CompositeMapper = { name: "String" } }, + accountOwnerEmail: { + serializedName: "properties.accountOwnerEmail", + type: { + name: "String" + } + }, status: { serializedName: "properties.status", type: { @@ -911,6 +934,12 @@ export const BillingAccount: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + notificationEmailAddress: { + serializedName: "properties.notificationEmailAddress", + type: { + name: "String" + } } } } @@ -1001,6 +1030,12 @@ export const BillingAccountUpdateRequest: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + notificationEmailAddress: { + serializedName: "properties.notificationEmailAddress", + type: { + name: "String" + } } } } @@ -2509,6 +2544,13 @@ export const OperationDisplay: msRest.CompositeMapper = { type: { name: "String" } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } } } } @@ -2527,6 +2569,13 @@ export const Operation: msRest.CompositeMapper = { name: "String" } }, + isDataAction: { + readOnly: true, + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, display: { serializedName: "display", type: { @@ -2781,6 +2830,311 @@ export const Agreement: msRest.CompositeMapper = { } }; +export const ReservationSkuProperty: msRest.CompositeMapper = { + serializedName: "ReservationSkuProperty", + type: { + name: "Composite", + className: "ReservationSkuProperty", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ReservationUtilizationAggregates: msRest.CompositeMapper = { + serializedName: "ReservationUtilizationAggregates", + type: { + name: "Composite", + className: "ReservationUtilizationAggregates", + modelProperties: { + grain: { + readOnly: true, + serializedName: "grain", + type: { + name: "Number" + } + }, + grainUnit: { + readOnly: true, + serializedName: "grainUnit", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Number" + } + }, + valueUnit: { + readOnly: true, + serializedName: "valueUnit", + type: { + name: "String" + } + } + } + } +}; + +export const ReservationPropertyUtilization: msRest.CompositeMapper = { + serializedName: "ReservationProperty_utilization", + type: { + name: "Composite", + className: "ReservationPropertyUtilization", + modelProperties: { + trend: { + readOnly: true, + serializedName: "trend", + type: { + name: "String" + } + }, + aggregates: { + serializedName: "aggregates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReservationUtilizationAggregates" + } + } + } + } + } + } +}; + +export const Reservation: msRest.CompositeMapper = { + serializedName: "Reservation", + type: { + name: "Composite", + className: "Reservation", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ReservationSkuProperty" + } + }, + appliedScopes: { + serializedName: "properties.appliedScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + appliedScopeType: { + readOnly: true, + serializedName: "properties.appliedScopeType", + type: { + name: "String" + } + }, + reservedResourceType: { + readOnly: true, + serializedName: "properties.reservedResourceType", + type: { + name: "String" + } + }, + quantity: { + readOnly: true, + serializedName: "properties.quantity", + type: { + name: "Number" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + expiryDate: { + readOnly: true, + serializedName: "properties.expiryDate", + type: { + name: "String" + } + }, + provisioningSubState: { + readOnly: true, + serializedName: "properties.provisioningSubState", + type: { + name: "String" + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + displayProvisioningState: { + readOnly: true, + serializedName: "properties.displayProvisioningState", + type: { + name: "String" + } + }, + userFriendlyRenewState: { + readOnly: true, + serializedName: "properties.userFriendlyRenewState", + type: { + name: "String" + } + }, + userFriendlyAppliedScopeType: { + readOnly: true, + serializedName: "properties.userFriendlyAppliedScopeType", + type: { + name: "String" + } + }, + effectiveDateTime: { + readOnly: true, + serializedName: "properties.effectiveDateTime", + type: { + name: "String" + } + }, + skuDescription: { + readOnly: true, + serializedName: "properties.skuDescription", + type: { + name: "String" + } + }, + term: { + readOnly: true, + serializedName: "properties.term", + type: { + name: "String" + } + }, + renew: { + readOnly: true, + serializedName: "properties.renew", + type: { + name: "Boolean" + } + }, + renewSource: { + readOnly: true, + serializedName: "properties.renewSource", + type: { + name: "String" + } + }, + utilization: { + readOnly: true, + serializedName: "properties.utilization", + type: { + name: "Composite", + className: "ReservationPropertyUtilization" + } + } + } + } +}; + +export const ReservationSummary: msRest.CompositeMapper = { + serializedName: "ReservationSummary", + type: { + name: "Composite", + className: "ReservationSummary", + modelProperties: { + succeededCount: { + readOnly: true, + serializedName: "succeededCount", + type: { + name: "Number" + } + }, + failedCount: { + readOnly: true, + serializedName: "failedCount", + type: { + name: "Number" + } + }, + expiringCount: { + readOnly: true, + serializedName: "expiringCount", + type: { + name: "Number" + } + }, + expiredCount: { + readOnly: true, + serializedName: "expiredCount", + type: { + name: "Number" + } + }, + pendingCount: { + readOnly: true, + serializedName: "pendingCount", + type: { + name: "Number" + } + }, + cancelledCount: { + readOnly: true, + serializedName: "cancelledCount", + type: { + name: "Number" + } + } + } + } +}; + export const EnrollmentAccountSummary: msRest.CompositeMapper = { serializedName: "EnrollmentAccountSummary", type: { @@ -2902,11 +3256,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 +3300,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", @@ -3150,6 +3504,13 @@ export const CustomerListResult: msRest.CompositeMapper = { } } }, + totalCount: { + readOnly: true, + serializedName: "totalCount", + type: { + name: "Number" + } + }, nextLink: { readOnly: true, serializedName: "nextLink", @@ -3180,6 +3541,13 @@ export const InvoiceSectionListResult: msRest.CompositeMapper = { } } }, + totalCount: { + readOnly: true, + serializedName: "totalCount", + type: { + name: "Number" + } + }, nextLink: { readOnly: true, serializedName: "nextLink", @@ -3240,6 +3608,13 @@ export const BillingSubscriptionsListResult: msRest.CompositeMapper = { } } }, + totalCount: { + readOnly: true, + serializedName: "totalCount", + type: { + name: "Number" + } + }, nextLink: { readOnly: true, serializedName: "nextLink", @@ -3461,6 +3836,43 @@ export const AgreementListResult: msRest.CompositeMapper = { } }; +export const ReservationsListResult: msRest.CompositeMapper = { + serializedName: "ReservationsListResult", + type: { + name: "Composite", + className: "ReservationsListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Reservation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + summary: { + serializedName: "summary", + type: { + name: "Composite", + className: "ReservationSummary" + } + } + } + } +}; + export const EnrollmentAccountListResult: msRest.CompositeMapper = { serializedName: "EnrollmentAccountListResult", type: { 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..dabde0495c17 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 @@ -199,6 +198,18 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "$orderby", + type: { + name: "String" + } + } +}; export const periodEndDate: msRest.OperationQueryParameter = { parameterPath: "periodEndDate", mapper: { @@ -229,6 +240,18 @@ export const productName: msRest.OperationURLParameter = { } } }; +export const refreshSummary: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "refreshSummary" + ], + mapper: { + serializedName: "refreshSummary", + type: { + name: "String" + } + } +}; export const search: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -241,6 +264,18 @@ export const search: msRest.OperationQueryParameter = { } } }; +export const selectedState: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "selectedState" + ], + mapper: { + serializedName: "selectedState", + type: { + name: "String" + } + } +}; export const skiptoken: msRest.OperationQueryParameter = { parameterPath: [ "options", 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/reservationsMappers.ts b/sdk/billing/arm-billing/src/models/reservationsMappers.ts new file mode 100644 index 000000000000..d5802b988e23 --- /dev/null +++ b/sdk/billing/arm-billing/src/models/reservationsMappers.ts @@ -0,0 +1,19 @@ +/* + * 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. + */ + +export { + ErrorDetails, + ErrorResponse, + ErrorSubDetailsItem, + Reservation, + ReservationPropertyUtilization, + ReservationSkuProperty, + ReservationsListResult, + ReservationSummary, + ReservationUtilizationAggregates +} from "../models/mappers"; 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..a8cc56785daf 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 @@ -26,5 +25,6 @@ export * from "./operations"; export * from "./billingRoleDefinitions"; export * from "./billingRoleAssignments"; export * from "./agreements"; +export * from "./reservations"; export * from "./enrollmentAccounts"; export * from "./billingPeriods"; 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/reservations.ts b/sdk/billing/arm-billing/src/operations/reservations.ts new file mode 100644 index 000000000000..c02d17d2fda1 --- /dev/null +++ b/sdk/billing/arm-billing/src/operations/reservations.ts @@ -0,0 +1,260 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/reservationsMappers"; +import * as Parameters from "../models/parameters"; +import { BillingManagementClientContext } from "../billingManagementClientContext"; + +/** Class representing a Reservations. */ +export class Reservations { + private readonly client: BillingManagementClientContext; + + /** + * Create a Reservations. + * @param {BillingManagementClientContext} client Reference to the service client. + */ + constructor(client: BillingManagementClientContext) { + this.client = client; + } + + /** + * Lists the reservations for a billing account and the roll up counts of reservations group by + * provisioning states. + * @param billingAccountName The ID that uniquely identifies a billing account. + * @param [options] The optional parameters + * @returns Promise + */ + listByBillingAccount(billingAccountName: string, options?: Models.ReservationsListByBillingAccountOptionalParams): Promise; + /** + * @param billingAccountName The ID that uniquely identifies a billing account. + * @param callback The callback + */ + listByBillingAccount(billingAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param billingAccountName The ID that uniquely identifies a billing account. + * @param options The optional parameters + * @param callback The callback + */ + listByBillingAccount(billingAccountName: string, options: Models.ReservationsListByBillingAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingAccount(billingAccountName: string, options?: Models.ReservationsListByBillingAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + billingAccountName, + options + }, + listByBillingAccountOperationSpec, + callback) as Promise; + } + + /** + * Lists the reservations for a billing profile and the roll up counts of reservations group by + * provisioning state. + * @param billingAccountName The ID that uniquely identifies a billing account. + * @param billingProfileName The ID that uniquely identifies a billing profile. + * @param [options] The optional parameters + * @returns Promise + */ + listByBillingProfile(billingAccountName: string, billingProfileName: string, options?: Models.ReservationsListByBillingProfileOptionalParams): Promise; + /** + * @param billingAccountName The ID that uniquely identifies a billing account. + * @param billingProfileName The ID that uniquely identifies a billing profile. + * @param callback The callback + */ + listByBillingProfile(billingAccountName: string, billingProfileName: string, callback: msRest.ServiceCallback): void; + /** + * @param billingAccountName The ID that uniquely identifies a billing account. + * @param billingProfileName The ID that uniquely identifies a billing profile. + * @param options The optional parameters + * @param callback The callback + */ + listByBillingProfile(billingAccountName: string, billingProfileName: string, options: Models.ReservationsListByBillingProfileOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingProfile(billingAccountName: string, billingProfileName: string, options?: Models.ReservationsListByBillingProfileOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + billingAccountName, + billingProfileName, + options + }, + listByBillingProfileOperationSpec, + callback) as Promise; + } + + /** + * Lists the reservations for a billing account and the roll up counts of reservations group by + * provisioning states. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByBillingAccountNext(nextPageLink: string, options?: Models.ReservationsListByBillingAccountNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByBillingAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByBillingAccountNext(nextPageLink: string, options: Models.ReservationsListByBillingAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingAccountNext(nextPageLink: string, options?: Models.ReservationsListByBillingAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByBillingAccountNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the reservations for a billing profile and the roll up counts of reservations group by + * provisioning state. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByBillingProfileNext(nextPageLink: string, options?: Models.ReservationsListByBillingProfileNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByBillingProfileNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByBillingProfileNext(nextPageLink: string, options: Models.ReservationsListByBillingProfileNextOptionalParams, callback: msRest.ServiceCallback): void; + listByBillingProfileNext(nextPageLink: string, options?: Models.ReservationsListByBillingProfileNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByBillingProfileNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByBillingAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/reservations", + urlParameters: [ + Parameters.billingAccountName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.orderby, + Parameters.refreshSummary, + Parameters.selectedState + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReservationsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByBillingProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/reservations", + urlParameters: [ + Parameters.billingAccountName, + Parameters.billingProfileName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.orderby, + Parameters.refreshSummary, + Parameters.selectedState + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReservationsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByBillingAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.orderby, + Parameters.refreshSummary, + Parameters.selectedState + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReservationsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByBillingProfileNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.orderby, + Parameters.refreshSummary, + Parameters.selectedState + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReservationsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; 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 ],