diff --git a/sdk/billing/arm-billing/CHANGELOG.md b/sdk/billing/arm-billing/CHANGELOG.md index 9db38f873d8e..379250b2b87b 100644 --- a/sdk/billing/arm-billing/CHANGELOG.md +++ b/sdk/billing/arm-billing/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History - -## 4.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 4.1.0-beta.1 (2022-03-14) + +**Features** + + - Added Interface BillingProfileInfo + - Added Interface OperationsErrorDetails + - Added Interface OperationsErrorResponse + - Interface BillingProfileListResult has a new optional parameter totalCount + - Type Alias Agreement has a new parameter billingProfileInfo + + ## 4.0.0 (2021-12-31) The package of @azure/arm-billing is using our next generation design principles since version 4.0.0, which contains breaking changes. diff --git a/sdk/billing/arm-billing/LICENSE b/sdk/billing/arm-billing/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/billing/arm-billing/LICENSE +++ b/sdk/billing/arm-billing/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 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/_meta.json b/sdk/billing/arm-billing/_meta.json index 4864e3d0f808..f807f6b693e2 100644 --- a/sdk/billing/arm-billing/_meta.json +++ b/sdk/billing/arm-billing/_meta.json @@ -1,7 +1,8 @@ { - "commit": "0fe46ea84880c3232c7a86db0c73f30975b11b0b", + "commit": "63b914ba1221b0019410788d5a7a8194a1c685ef", "readme": "specification/billing/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/billing/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/billing/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.1.1", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/billing/arm-billing/api-extractor.json b/sdk/billing/arm-billing/api-extractor.json index a3ea4f0e6b90..eb563b1c2f58 100644 --- a/sdk/billing/arm-billing/api-extractor.json +++ b/sdk/billing/arm-billing/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-billing.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/billing/arm-billing/package.json b/sdk/billing/arm-billing/package.json index eaa3fca62847..0bc29b44ce5b 100644 --- a/sdk/billing/arm-billing/package.json +++ b/sdk/billing/arm-billing/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for BillingManagementClient.", - "version": "4.0.1", + "version": "4.1.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/billing/arm-billing/review/arm-billing.api.md b/sdk/billing/arm-billing/review/arm-billing.api.md index 17009cbc42d6..988b9b04f266 100644 --- a/sdk/billing/arm-billing/review/arm-billing.api.md +++ b/sdk/billing/arm-billing/review/arm-billing.api.md @@ -57,6 +57,7 @@ export type Agreement = Resource & { readonly agreementLink?: string; readonly category?: Category; readonly acceptanceMode?: AcceptanceMode; + readonly billingProfileInfo?: BillingProfileInfo; readonly effectiveDate?: Date; readonly expirationDate?: Date; participants?: Participants[]; @@ -440,9 +441,17 @@ export interface BillingProfileCreationRequest { poNumber?: string; } +// @public +export interface BillingProfileInfo { + billingProfileDisplayName?: string; + billingProfileId?: string; + indirectRelationshipOrganizationName?: string; +} + // @public export interface BillingProfileListResult { readonly nextLink?: string; + readonly totalCount?: number; readonly value?: BillingProfile[]; } @@ -1857,6 +1866,18 @@ export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface OperationsErrorDetails { + readonly code?: string; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface OperationsErrorResponse { + error?: OperationsErrorDetails; +} + // @public export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/billing/arm-billing/src/billingManagementClient.ts b/sdk/billing/arm-billing/src/billingManagementClient.ts index d46500057b1f..49a1f5f8a1fa 100644 --- a/sdk/billing/arm-billing/src/billingManagementClient.ts +++ b/sdk/billing/arm-billing/src/billingManagementClient.ts @@ -23,13 +23,13 @@ import { TransactionsImpl, PoliciesImpl, BillingPropertyOperationsImpl, - OperationsImpl, BillingRoleDefinitionsImpl, BillingRoleAssignmentsImpl, AgreementsImpl, ReservationsImpl, EnrollmentAccountsImpl, - BillingPeriodsImpl + BillingPeriodsImpl, + OperationsImpl } from "./operations"; import { BillingAccounts, @@ -46,13 +46,13 @@ import { Transactions, Policies, BillingPropertyOperations, - Operations, BillingRoleDefinitions, BillingRoleAssignments, Agreements, Reservations, EnrollmentAccounts, - BillingPeriods + BillingPeriods, + Operations } from "./operationsInterfaces"; import { BillingManagementClientOptionalParams } from "./models"; @@ -87,7 +87,7 @@ export class BillingManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-billing/4.0.0`; + const packageDetails = `azsdk-js-arm-billing/4.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -124,13 +124,13 @@ export class BillingManagementClient extends coreClient.ServiceClient { this.transactions = new TransactionsImpl(this); this.policies = new PoliciesImpl(this); this.billingPropertyOperations = new BillingPropertyOperationsImpl(this); - this.operations = new OperationsImpl(this); this.billingRoleDefinitions = new BillingRoleDefinitionsImpl(this); this.billingRoleAssignments = new BillingRoleAssignmentsImpl(this); this.agreements = new AgreementsImpl(this); this.reservations = new ReservationsImpl(this); this.enrollmentAccounts = new EnrollmentAccountsImpl(this); this.billingPeriods = new BillingPeriodsImpl(this); + this.operations = new OperationsImpl(this); } billingAccounts: BillingAccounts; @@ -147,11 +147,11 @@ export class BillingManagementClient extends coreClient.ServiceClient { transactions: Transactions; policies: Policies; billingPropertyOperations: BillingPropertyOperations; - operations: Operations; billingRoleDefinitions: BillingRoleDefinitions; billingRoleAssignments: BillingRoleAssignments; agreements: Agreements; reservations: Reservations; enrollmentAccounts: EnrollmentAccounts; billingPeriods: BillingPeriods; + operations: Operations; } diff --git a/sdk/billing/arm-billing/src/models/index.ts b/sdk/billing/arm-billing/src/models/index.ts index 81635b09b200..022f7eb73023 100644 --- a/sdk/billing/arm-billing/src/models/index.ts +++ b/sdk/billing/arm-billing/src/models/index.ts @@ -376,6 +376,11 @@ export interface BillingProfileListResult { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: BillingProfile[]; + /** + * 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. @@ -671,60 +676,6 @@ export interface TransactionListResult { readonly nextLink?: string; } -/** The list of billing operations and a URL link to get the next set of results. */ -export interface OperationListResult { - /** - * The list of billing operations supported by the Microsoft.Billing resource provider. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A Billing REST API operation. */ -export interface Operation { - /** - * Operation name: {provider}/{resource}/{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. */ - display?: OperationDisplay; -} - -/** The object that represents the operation. */ -export interface OperationDisplay { - /** - * Service provider: Microsoft.Billing. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * Resource on which the operation is performed such as invoice and billing subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * Operation type such as read, write and delete. - * 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; -} - /** The list of role definitions. */ export interface BillingRoleDefinitionListResult { /** @@ -767,6 +718,16 @@ export interface AgreementListResult { readonly nextLink?: string; } +/** Details about billing profile associated with agreement and available only for specific agreements. */ +export interface BillingProfileInfo { + /** The unique identifier for the billing profile. */ + billingProfileId?: string; + /** The name of the billing profile */ + billingProfileDisplayName?: string; + /** Billing account name. This property is available for a specific type of agreement. */ + indirectRelationshipOrganizationName?: string; +} + /** The details about a participant. */ export interface Participants { /** @@ -1016,6 +977,85 @@ export interface BillingPeriodsListResult { readonly nextLink?: string; } +/** The list of billing operations and a URL link to get the next set of results. */ +export interface OperationListResult { + /** + * The list of billing operations supported by the Microsoft.Billing resource provider. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results if there are any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A Billing REST API operation. */ +export interface Operation { + /** + * Operation name: {provider}/{resource}/{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. */ + display?: OperationDisplay; +} + +/** The object that represents the operation. */ +export interface OperationDisplay { + /** + * Service provider: Microsoft.Billing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * Resource on which the operation is performed such as invoice and billing subscription. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * Operation type such as read, write and delete. + * 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; +} + +/** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */ +export interface OperationsErrorResponse { + /** The details of the error. */ + error?: OperationsErrorDetails; +} + +/** The details of the error. */ +export interface OperationsErrorDetails { + /** + * Error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * Error message indicating why the operation failed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The target of the particular error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; +} + /** The request parameters for creating a new billing profile. */ export interface BillingProfileCreationRequest { /** The name of the billing profile. */ @@ -1916,6 +1956,11 @@ export type Agreement = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly acceptanceMode?: AcceptanceMode; + /** + * The list of billing profiles associated with agreement and present only for specific agreements. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly billingProfileInfo?: BillingProfileInfo; /** * The date from which the agreement is effective. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3336,20 +3381,6 @@ export interface BillingPropertyUpdateOptionalParams /** Contains response data for the update operation. */ export type BillingPropertyUpdateResponse = BillingProperty; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - /** Optional parameters. */ export interface BillingRoleDefinitionsGetByBillingAccountOptionalParams extends coreClient.OperationOptions {} @@ -3647,6 +3678,20 @@ export interface BillingPeriodsListNextOptionalParams /** Contains response data for the listNext operation. */ export type BillingPeriodsListNextResponse = BillingPeriodsListResult; +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + /** Optional parameters. */ export interface BillingManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/billing/arm-billing/src/models/mappers.ts b/sdk/billing/arm-billing/src/models/mappers.ts index cab4b62c81e0..dea3bf046a0a 100644 --- a/sdk/billing/arm-billing/src/models/mappers.ts +++ b/sdk/billing/arm-billing/src/models/mappers.ts @@ -771,6 +771,13 @@ export const BillingProfileListResult: coreClient.CompositeMapper = { } } }, + totalCount: { + serializedName: "totalCount", + readOnly: true, + type: { + name: "Number" + } + }, nextLink: { serializedName: "nextLink", readOnly: true, @@ -1341,10 +1348,10 @@ export const TransactionListResult: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const BillingRoleDefinitionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "BillingRoleDefinitionListResult", modelProperties: { value: { serializedName: "value", @@ -1354,7 +1361,7 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "BillingRoleDefinition" } } } @@ -1370,77 +1377,10 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const BillingRoleDefinitionListResult: coreClient.CompositeMapper = { +export const BillingRoleAssignmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BillingRoleDefinitionListResult", + className: "BillingRoleAssignmentListResult", modelProperties: { value: { serializedName: "value", @@ -1450,7 +1390,7 @@ export const BillingRoleDefinitionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BillingRoleDefinition" + className: "BillingRoleAssignment" } } } @@ -1466,10 +1406,10 @@ export const BillingRoleDefinitionListResult: coreClient.CompositeMapper = { } }; -export const BillingRoleAssignmentListResult: coreClient.CompositeMapper = { +export const AgreementListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BillingRoleAssignmentListResult", + className: "AgreementListResult", modelProperties: { value: { serializedName: "value", @@ -1479,7 +1419,7 @@ export const BillingRoleAssignmentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BillingRoleAssignment" + className: "Agreement" } } } @@ -1495,27 +1435,25 @@ export const BillingRoleAssignmentListResult: coreClient.CompositeMapper = { } }; -export const AgreementListResult: coreClient.CompositeMapper = { +export const BillingProfileInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgreementListResult", + className: "BillingProfileInfo", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + billingProfileId: { + serializedName: "billingProfileId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Agreement" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + billingProfileDisplayName: { + serializedName: "billingProfileDisplayName", + type: { + name: "String" + } + }, + indirectRelationshipOrganizationName: { + serializedName: "indirectRelationshipOrganizationName", type: { name: "String" } @@ -1947,6 +1885,148 @@ export const BillingPeriodsListResult: coreClient.CompositeMapper = { } }; +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OperationsErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationsErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "OperationsErrorDetails" + } + } + } + } +}; + +export const OperationsErrorDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationsErrorDetails", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const BillingProfileCreationRequest: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3580,6 +3660,13 @@ export const Agreement: coreClient.CompositeMapper = { name: "String" } }, + billingProfileInfo: { + serializedName: "properties.billingProfileInfo", + type: { + name: "Composite", + className: "BillingProfileInfo" + } + }, effectiveDate: { serializedName: "properties.effectiveDate", readOnly: true, diff --git a/sdk/billing/arm-billing/src/operations/index.ts b/sdk/billing/arm-billing/src/operations/index.ts index 44525347c3ce..4783a6a428be 100644 --- a/sdk/billing/arm-billing/src/operations/index.ts +++ b/sdk/billing/arm-billing/src/operations/index.ts @@ -20,10 +20,10 @@ export * from "./invoices"; export * from "./transactions"; export * from "./policies"; export * from "./billingPropertyOperations"; -export * from "./operations"; export * from "./billingRoleDefinitions"; export * from "./billingRoleAssignments"; export * from "./agreements"; export * from "./reservations"; export * from "./enrollmentAccounts"; export * from "./billingPeriods"; +export * from "./operations"; diff --git a/sdk/billing/arm-billing/src/operations/operations.ts b/sdk/billing/arm-billing/src/operations/operations.ts index bef525a131ac..a0bc578c2a81 100644 --- a/sdk/billing/arm-billing/src/operations/operations.ts +++ b/sdk/billing/arm-billing/src/operations/operations.ts @@ -111,7 +111,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.OperationsErrorResponse } }, queryParameters: [Parameters.apiVersion], @@ -127,7 +127,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.OperationsErrorResponse } }, queryParameters: [Parameters.apiVersion], diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/index.ts b/sdk/billing/arm-billing/src/operationsInterfaces/index.ts index 44525347c3ce..4783a6a428be 100644 --- a/sdk/billing/arm-billing/src/operationsInterfaces/index.ts +++ b/sdk/billing/arm-billing/src/operationsInterfaces/index.ts @@ -20,10 +20,10 @@ export * from "./invoices"; export * from "./transactions"; export * from "./policies"; export * from "./billingPropertyOperations"; -export * from "./operations"; export * from "./billingRoleDefinitions"; export * from "./billingRoleAssignments"; export * from "./agreements"; export * from "./reservations"; export * from "./enrollmentAccounts"; export * from "./billingPeriods"; +export * from "./operations"; diff --git a/sdk/billing/arm-billing/tsconfig.json b/sdk/billing/arm-billing/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/billing/arm-billing/tsconfig.json +++ b/sdk/billing/arm-billing/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/billing/ci.mgmt.yml b/sdk/billing/ci.mgmt.yml index e00ef4db33ee..a79762850c4f 100644 --- a/sdk/billing/ci.mgmt.yml +++ b/sdk/billing/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/billing/ci.mgmt.yml - sdk/billing/arm-billing/ + - sdk/billing/arm-billing pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/billing/ci.mgmt.yml - sdk/billing/arm-billing/ - + - sdk/billing/arm-billing extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: billing Artifacts: - name: azure-arm-billing - safeName: azurearmbilling \ No newline at end of file + safeName: azurearmbilling