Skip to content

Commit

Permalink
CodeGen from PR 18202 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 8c15a5acd231e0cf846e58a99673cf46e95c4cf1 into 96da969aa75e2beb27c3dbc2d69a76900856cc52
  • Loading branch information
SDKAuto committed Mar 14, 2022
1 parent 1007ebb commit 1e358b4
Show file tree
Hide file tree
Showing 14 changed files with 377 additions and 200 deletions.
23 changes: 12 additions & 11 deletions sdk/billing/arm-billing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sdk/billing/arm-billing/LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions sdk/billing/arm-billing/_meta.json
Original file line number Diff line number Diff line change
@@ -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"
}
25 changes: 19 additions & 6 deletions sdk/billing/arm-billing/api-extractor.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
4 changes: 2 additions & 2 deletions sdk/billing/arm-billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
21 changes: 21 additions & 0 deletions sdk/billing/arm-billing/review/arm-billing.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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[];
}

Expand Down Expand Up @@ -1857,6 +1866,18 @@ export interface Operations {
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
}

// @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 {
}
Expand Down
14 changes: 7 additions & 7 deletions sdk/billing/arm-billing/src/billingManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import {
TransactionsImpl,
PoliciesImpl,
BillingPropertyOperationsImpl,
OperationsImpl,
BillingRoleDefinitionsImpl,
BillingRoleAssignmentsImpl,
AgreementsImpl,
ReservationsImpl,
EnrollmentAccountsImpl,
BillingPeriodsImpl
BillingPeriodsImpl,
OperationsImpl
} from "./operations";
import {
BillingAccounts,
Expand All @@ -46,13 +46,13 @@ import {
Transactions,
Policies,
BillingPropertyOperations,
Operations,
BillingRoleDefinitions,
BillingRoleAssignments,
Agreements,
Reservations,
EnrollmentAccounts,
BillingPeriods
BillingPeriods,
Operations
} from "./operationsInterfaces";
import { BillingManagementClientOptionalParams } from "./models";

Expand Down Expand Up @@ -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}`
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}
Loading

0 comments on commit 1e358b4

Please sign in to comment.