Skip to content

Commit e046eac

Browse files
author
SDKAuto
committed
CodeGen from PR 17715 in Azure/azure-rest-api-specs
Merge 4ebdac46110ec44a431a9ea2b6a9b98514939414 into 9673e2239f4f8257b2e916df2d15e1ef41c5bfd1
1 parent 18266a0 commit e046eac

File tree

10 files changed

+118
-28
lines changed

10 files changed

+118
-28
lines changed

sdk/billing/arm-billing/CHANGELOG.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Release History
2-
3-
## 4.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 4.1.0-beta.1 (2022-02-09)
4+
5+
**Features**
6+
7+
- Added Interface BillingProfileInfo
8+
- Interface BillingProfileListResult has a new optional parameter totalCount
9+
- Type Alias Agreement has a new parameter billingProfileInfo
10+
11+
1312
## 4.0.0 (2021-12-31)
1413

1514
The package of @azure/arm-billing is using our next generation design principles since version 4.0.0, which contains breaking changes.

sdk/billing/arm-billing/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Microsoft
3+
Copyright (c) 2022 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/billing/arm-billing/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "0fe46ea84880c3232c7a86db0c73f30975b11b0b",
2+
"commit": "96ed8535a27b7216ac5d6ddee8d7f5c8c0d3c46d",
33
"readme": "specification/billing/resource-manager/readme.md",
4-
"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/[email protected].20211217.1",
4+
"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/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20211217.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-billing.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/billing/arm-billing/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for BillingManagementClient.",
6-
"version": "4.0.1",
6+
"version": "4.1.0-beta.1",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -99,4 +99,4 @@
9999
},
100100
"sideEffects": false,
101101
"autoPublish": true
102-
}
102+
}

sdk/billing/arm-billing/review/arm-billing.api.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export type Agreement = Resource & {
5757
readonly agreementLink?: string;
5858
readonly category?: Category;
5959
readonly acceptanceMode?: AcceptanceMode;
60+
readonly billingProfileInfo?: BillingProfileInfo;
6061
readonly effectiveDate?: Date;
6162
readonly expirationDate?: Date;
6263
participants?: Participants[];
@@ -440,9 +441,17 @@ export interface BillingProfileCreationRequest {
440441
poNumber?: string;
441442
}
442443

444+
// @public
445+
export interface BillingProfileInfo {
446+
billingProfileDisplayName?: string;
447+
billingProfileId?: string;
448+
indirectRelationshipOrganizationName?: string;
449+
}
450+
443451
// @public
444452
export interface BillingProfileListResult {
445453
readonly nextLink?: string;
454+
readonly totalCount?: number;
446455
readonly value?: BillingProfile[];
447456
}
448457

sdk/billing/arm-billing/src/billingManagementClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class BillingManagementClient extends coreClient.ServiceClient {
8787
credential: credentials
8888
};
8989

90-
const packageDetails = `azsdk-js-arm-billing/4.0.0`;
90+
const packageDetails = `azsdk-js-arm-billing/4.1.0-beta.1`;
9191
const userAgentPrefix =
9292
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
9393
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

sdk/billing/arm-billing/src/models/index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ export interface BillingProfileListResult {
376376
* NOTE: This property will not be serialized. It can only be populated by the server.
377377
*/
378378
readonly value?: BillingProfile[];
379+
/**
380+
* Total number of records.
381+
* NOTE: This property will not be serialized. It can only be populated by the server.
382+
*/
383+
readonly totalCount?: number;
379384
/**
380385
* The link (url) to the next page of results.
381386
* NOTE: This property will not be serialized. It can only be populated by the server.
@@ -767,6 +772,16 @@ export interface AgreementListResult {
767772
readonly nextLink?: string;
768773
}
769774

775+
/** Details about billing profile associated with agreement and available only for specific agreements. */
776+
export interface BillingProfileInfo {
777+
/** The unique identifier for the billing profile. */
778+
billingProfileId?: string;
779+
/** The name of the billing profile */
780+
billingProfileDisplayName?: string;
781+
/** Billing account name. This property is available for a specific type of agreement. */
782+
indirectRelationshipOrganizationName?: string;
783+
}
784+
770785
/** The details about a participant. */
771786
export interface Participants {
772787
/**
@@ -1916,6 +1931,11 @@ export type Agreement = Resource & {
19161931
* NOTE: This property will not be serialized. It can only be populated by the server.
19171932
*/
19181933
readonly acceptanceMode?: AcceptanceMode;
1934+
/**
1935+
* The list of billing profiles associated with agreement and present only for specific agreements.
1936+
* NOTE: This property will not be serialized. It can only be populated by the server.
1937+
*/
1938+
readonly billingProfileInfo?: BillingProfileInfo;
19191939
/**
19201940
* The date from which the agreement is effective.
19211941
* NOTE: This property will not be serialized. It can only be populated by the server.

sdk/billing/arm-billing/src/models/mappers.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,13 @@ export const BillingProfileListResult: coreClient.CompositeMapper = {
771771
}
772772
}
773773
},
774+
totalCount: {
775+
serializedName: "totalCount",
776+
readOnly: true,
777+
type: {
778+
name: "Number"
779+
}
780+
},
774781
nextLink: {
775782
serializedName: "nextLink",
776783
readOnly: true,
@@ -1524,6 +1531,33 @@ export const AgreementListResult: coreClient.CompositeMapper = {
15241531
}
15251532
};
15261533

1534+
export const BillingProfileInfo: coreClient.CompositeMapper = {
1535+
type: {
1536+
name: "Composite",
1537+
className: "BillingProfileInfo",
1538+
modelProperties: {
1539+
billingProfileId: {
1540+
serializedName: "billingProfileId",
1541+
type: {
1542+
name: "String"
1543+
}
1544+
},
1545+
billingProfileDisplayName: {
1546+
serializedName: "billingProfileDisplayName",
1547+
type: {
1548+
name: "String"
1549+
}
1550+
},
1551+
indirectRelationshipOrganizationName: {
1552+
serializedName: "indirectRelationshipOrganizationName",
1553+
type: {
1554+
name: "String"
1555+
}
1556+
}
1557+
}
1558+
}
1559+
};
1560+
15271561
export const Participants: coreClient.CompositeMapper = {
15281562
type: {
15291563
name: "Composite",
@@ -3580,6 +3614,13 @@ export const Agreement: coreClient.CompositeMapper = {
35803614
name: "String"
35813615
}
35823616
},
3617+
billingProfileInfo: {
3618+
serializedName: "properties.billingProfileInfo",
3619+
type: {
3620+
name: "Composite",
3621+
className: "BillingProfileInfo"
3622+
}
3623+
},
35833624
effectiveDate: {
35843625
serializedName: "properties.effectiveDate",
35853626
readOnly: true,

sdk/billing/arm-billing/tsconfig.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@
99
"esModuleInterop": true,
1010
"allowSyntheticDefaultImports": true,
1111
"forceConsistentCasingInFileNames": true,
12-
"lib": ["es6", "dom"],
12+
"lib": [
13+
"es6",
14+
"dom"
15+
],
1316
"declaration": true,
1417
"outDir": "./dist-esm",
1518
"importHelpers": true
1619
},
17-
"include": ["./src/**/*.ts", "./test/**/*.ts"],
18-
"exclude": ["node_modules"]
19-
}
20+
"include": [
21+
"./src/**/*.ts",
22+
"./test/**/*.ts"
23+
],
24+
"exclude": [
25+
"node_modules"
26+
]
27+
}

0 commit comments

Comments
 (0)