Skip to content

Commit a126916

Browse files
author
SDKAuto
committed
CodeGen from PR 18763 in Azure/azure-rest-api-specs
Merge 293b2d4185ff70c3175fd26c803e3d75c6785d2c into b2091281717ae4447f8f627a4abb6159744150e1
1 parent 11c2645 commit a126916

File tree

13 files changed

+385
-152
lines changed

13 files changed

+385
-152
lines changed

sdk/reservations/arm-reservations/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Release History
22

3+
## 7.1.0 (2022-04-22)
4+
5+
**Features**
6+
7+
- Interface CurrentQuotaLimit has a new optional parameter id
8+
- Interface CurrentQuotaLimit has a new optional parameter name
9+
- Interface CurrentQuotaLimit has a new optional parameter type
10+
- Interface CurrentQuotaLimitBase has a new optional parameter id
11+
- Interface CurrentQuotaLimitBase has a new optional parameter name
12+
- Interface CurrentQuotaLimitBase has a new optional parameter type
13+
- Interface GetCatalogOptionalParams has a new optional parameter offerId
14+
- Interface GetCatalogOptionalParams has a new optional parameter planId
15+
- Interface GetCatalogOptionalParams has a new optional parameter publisherId
16+
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter idPropertiesId
17+
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter namePropertiesName
18+
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter typePropertiesType
19+
- Interface ReservationOrderResponse has a new optional parameter benefitStartTime
20+
- Interface ReservationsProperties has a new optional parameter benefitStartTime
21+
- Interface ReservationSummary has a new optional parameter processingCount
22+
- Enum KnownDisplayProvisioningState has a new value Processing
23+
- Enum KnownReservationStatusCode has a new value Processing
24+
- Enum KnownReservedResourceType has a new value VirtualMachineSoftware
25+
26+
327
## 7.0.0 (2022-01-21)
428

529
The package of @azure/arm-reservations is using our next generation design principles since version 7.0.0, which contains breaking changes.

sdk/reservations/arm-reservations/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ For more information about how to create an Azure AD Application check out [this
4949
```javascript
5050
const { AzureReservationAPI } = require("@azure/arm-reservations");
5151
const { DefaultAzureCredential } = require("@azure/identity");
52-
const client = new AzureReservationAPI(new DefaultAzureCredential());
52+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
53+
const client = new AzureReservationAPI(new DefaultAzureCredential(), subscriptionId);
5354
```
5455

5556

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
2+
"commit": "dbd98713cdf1338e7682cc335e40c1704081d778",
33
"readme": "specification/reservations/resource-manager/readme.md",
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=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/reservations/resource-manager/readme.md --use=@autorest/[email protected].20220114.1 --generate-sample=true",
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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/reservations/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]"
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/[email protected]"
78
}
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-reservations.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/reservations/arm-reservations/package.json

Lines changed: 4 additions & 20 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 AzureReservationAPI.",
6-
"version": "7.0.0",
6+
"version": "7.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -28,7 +28,7 @@
2828
"module": "./dist-esm/src/index.js",
2929
"types": "./types/arm-reservations.d.ts",
3030
"devDependencies": {
31-
"@microsoft/api-extractor": "7.18.11",
31+
"@microsoft/api-extractor": "^7.18.11",
3232
"@rollup/plugin-commonjs": "11.0.2",
3333
"@rollup/plugin-json": "^4.0.0",
3434
"@rollup/plugin-multi-entry": "^3.0.0",
@@ -98,21 +98,5 @@
9898
"docs": "echo skipped"
9999
},
100100
"sideEffects": false,
101-
"//metadata": {
102-
"constantPaths": [
103-
{
104-
"path": "src/AzureReservationAPI.ts",
105-
"prefix": "packageDetails"
106-
}
107-
]
108-
},
109-
"autoPublish": true,
110-
"//sampleConfiguration": {
111-
"productName": "",
112-
"productSlugs": [
113-
"azure"
114-
],
115-
"disableDocsMs": true,
116-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-reservations?view=azure-node-preview"
117-
}
118-
}
101+
"autoPublish": true
102+
}

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,20 @@ export interface CreateGenericQuotaRequestParameters {
231231

232232
// @public
233233
export interface CurrentQuotaLimit {
234+
readonly id?: string;
234235
readonly message?: string;
236+
readonly name?: string;
235237
properties?: QuotaProperties;
236238
readonly provisioningState?: QuotaRequestState;
239+
readonly type?: string;
237240
}
238241

239242
// @public
240243
export interface CurrentQuotaLimitBase {
244+
readonly id?: string;
245+
readonly name?: string;
241246
properties?: QuotaProperties;
247+
readonly type?: string;
242248
}
243249

244250
// @public
@@ -366,6 +372,9 @@ export type GetAppliedReservationListResponse = AppliedReservations;
366372
// @public
367373
export interface GetCatalogOptionalParams extends coreClient.OperationOptions {
368374
location?: string;
375+
offerId?: string;
376+
planId?: string;
377+
publisherId?: string;
369378
reservedResourceType?: string;
370379
}
371380

@@ -420,6 +429,8 @@ export enum KnownDisplayProvisioningState {
420429
// (undocumented)
421430
Pending = "Pending",
422431
// (undocumented)
432+
Processing = "Processing",
433+
// (undocumented)
423434
Succeeded = "Succeeded"
424435
}
425436

@@ -704,6 +715,8 @@ export enum KnownReservationStatusCode {
704715
// (undocumented)
705716
Pending = "Pending",
706717
// (undocumented)
718+
Processing = "Processing",
719+
// (undocumented)
707720
PurchaseError = "PurchaseError",
708721
// (undocumented)
709722
Split = "Split",
@@ -772,6 +785,8 @@ export enum KnownReservedResourceType {
772785
// (undocumented)
773786
VirtualMachines = "VirtualMachines",
774787
// (undocumented)
788+
VirtualMachineSoftware = "VirtualMachineSoftware",
789+
// (undocumented)
775790
VMwareCloudSimple = "VMwareCloudSimple"
776791
}
777792

@@ -963,7 +978,7 @@ export interface QuotaCreateOrUpdateOptionalParams extends coreClient.OperationO
963978
}
964979

965980
// @public
966-
export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
981+
export type QuotaCreateOrUpdateResponse = CurrentQuotaLimitBase;
967982

968983
// @public
969984
export interface QuotaGetHeaders {
@@ -1044,12 +1059,15 @@ export interface QuotaRequestDetailsList {
10441059
// @public
10451060
export interface QuotaRequestOneResourceSubmitResponse {
10461061
readonly id?: string;
1062+
readonly idPropertiesId?: string;
10471063
readonly message?: string;
10481064
readonly name?: string;
1065+
readonly namePropertiesName?: string;
10491066
properties?: QuotaProperties;
10501067
readonly provisioningState?: QuotaRequestState;
10511068
readonly requestSubmitTime?: Date;
10521069
readonly type?: string;
1070+
readonly typePropertiesType?: string;
10531071
}
10541072

10551073
// @public
@@ -1120,7 +1138,7 @@ export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
11201138
}
11211139

11221140
// @public
1123-
export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
1141+
export type QuotaUpdateResponse = CurrentQuotaLimitBase;
11241142

11251143
// @public (undocumented)
11261144
export interface RenewPropertiesResponse {
@@ -1329,6 +1347,7 @@ export type ReservationOrderPurchaseResponse = ReservationOrderResponse;
13291347

13301348
// @public (undocumented)
13311349
export interface ReservationOrderResponse {
1350+
benefitStartTime?: Date;
13321351
billingPlan?: ReservationBillingPlan;
13331352
createdDateTime?: Date;
13341353
displayName?: string;
@@ -1389,6 +1408,7 @@ export interface ReservationsProperties {
13891408
appliedScopes?: string[];
13901409
appliedScopeType?: AppliedScopeType;
13911410
archived?: boolean;
1411+
benefitStartTime?: Date;
13921412
billingPlan?: ReservationBillingPlan;
13931413
billingScopeId?: string;
13941414
capabilities?: string;
@@ -1436,6 +1456,7 @@ export interface ReservationSummary {
14361456
readonly expiringCount?: number;
14371457
readonly failedCount?: number;
14381458
readonly pendingCount?: number;
1459+
readonly processingCount?: number;
14391460
readonly succeededCount?: number;
14401461
}
14411462

sdk/reservations/arm-reservations/src/azureReservationAPI.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class AzureReservationAPI extends coreClient.ServiceClient {
6161
credential: credentials
6262
};
6363

64-
const packageDetails = `azsdk-js-arm-reservations/7.0.0`;
64+
const packageDetails = `azsdk-js-arm-reservations/7.1.0`;
6565
const userAgentPrefix =
6666
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6767
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -152,7 +152,10 @@ const getCatalogOperationSpec: coreClient.OperationSpec = {
152152
queryParameters: [
153153
Parameters.apiVersion,
154154
Parameters.reservedResourceType,
155-
Parameters.location
155+
Parameters.location,
156+
Parameters.publisherId,
157+
Parameters.offerId,
158+
Parameters.planId
156159
],
157160
urlParameters: [Parameters.$host, Parameters.subscriptionId],
158161
headerParameters: [Parameters.accept],

0 commit comments

Comments
 (0)