Skip to content

Commit c828e0c

Browse files
author
SDKAuto
committed
CodeGen from PR 18175 in Azure/azure-rest-api-specs
Merge 02e68b80ed2eb83db87046c2510b583d9fd918fd into 2c66a689c610dbef623d6c4e4c4e913446d5ac68
1 parent 164b708 commit c828e0c

File tree

13 files changed

+372
-150
lines changed

13 files changed

+372
-150
lines changed

sdk/reservations/arm-reservations/CHANGELOG.md

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

3+
## 7.1.0 (2022-03-12)
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 fulfillmentCreatedDateTime
20+
- Interface ReservationsProperties has a new optional parameter fulfillmentCreatedDateTime
21+
22+
323
## 7.0.0 (2022-01-21)
424

525
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": "92575fe56625d5af8ed31a2eb3531454a3952776",
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=/home/vsts/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: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for AzureReservationAPI.",
6-
"version": "7.0.0",
7-
"engines": { "node": ">=12.0.0" },
6+
"version": "7.1.0",
7+
"engines": {
8+
"node": ">=12.0.0"
9+
},
810
"dependencies": {
911
"@azure/core-lro": "^2.2.0",
1012
"@azure/abort-controller": "^1.0.0",
@@ -14,7 +16,13 @@
1416
"@azure/core-rest-pipeline": "^1.1.0",
1517
"tslib": "^2.2.0"
1618
},
17-
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19+
"keywords": [
20+
"node",
21+
"azure",
22+
"typescript",
23+
"browser",
24+
"isomorphic"
25+
],
1826
"license": "MIT",
1927
"main": "./dist/index.js",
2028
"module": "./dist-esm/src/index.js",
@@ -41,7 +49,9 @@
4149
"type": "git",
4250
"url": "https://github.com/Azure/azure-sdk-for-js.git"
4351
},
44-
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
52+
"bugs": {
53+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
54+
},
4555
"files": [
4656
"dist/**/*.js",
4757
"dist/**/*.js.map",
@@ -88,16 +98,5 @@
8898
"docs": "echo skipped"
8999
},
90100
"sideEffects": false,
91-
"//metadata": {
92-
"constantPaths": [
93-
{ "path": "src/AzureReservationAPI.ts", "prefix": "packageDetails" }
94-
]
95-
},
96-
"autoPublish": true,
97-
"//sampleConfiguration": {
98-
"productName": "",
99-
"productSlugs": ["azure"],
100-
"disableDocsMs": true,
101-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-reservations?view=azure-node-preview"
102-
}
103-
}
101+
"autoPublish": true
102+
}

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

Lines changed: 17 additions & 3 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

@@ -963,7 +972,7 @@ export interface QuotaCreateOrUpdateOptionalParams extends coreClient.OperationO
963972
}
964973

965974
// @public
966-
export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
975+
export type QuotaCreateOrUpdateResponse = CurrentQuotaLimitBase;
967976

968977
// @public
969978
export interface QuotaGetHeaders {
@@ -1044,12 +1053,15 @@ export interface QuotaRequestDetailsList {
10441053
// @public
10451054
export interface QuotaRequestOneResourceSubmitResponse {
10461055
readonly id?: string;
1056+
readonly idPropertiesId?: string;
10471057
readonly message?: string;
10481058
readonly name?: string;
1059+
readonly namePropertiesName?: string;
10491060
properties?: QuotaProperties;
10501061
readonly provisioningState?: QuotaRequestState;
10511062
readonly requestSubmitTime?: Date;
10521063
readonly type?: string;
1064+
readonly typePropertiesType?: string;
10531065
}
10541066

10551067
// @public
@@ -1120,7 +1132,7 @@ export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
11201132
}
11211133

11221134
// @public
1123-
export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
1135+
export type QuotaUpdateResponse = CurrentQuotaLimitBase;
11241136

11251137
// @public (undocumented)
11261138
export interface RenewPropertiesResponse {
@@ -1335,6 +1347,7 @@ export interface ReservationOrderResponse {
13351347
// (undocumented)
13361348
etag?: number;
13371349
expiryDate?: Date;
1350+
fulfillmentCreatedDateTime?: Date;
13381351
readonly id?: string;
13391352
readonly name?: string;
13401353
originalQuantity?: number;
@@ -1365,7 +1378,7 @@ export interface ReservationResponse {
13651378
// @public
13661379
export interface ReservationsListResult {
13671380
readonly nextLink?: string;
1368-
summary?: ReservationSummary;
1381+
readonly summary?: ReservationSummary;
13691382
readonly value?: ReservationResponse[];
13701383
}
13711384

@@ -1397,6 +1410,7 @@ export interface ReservationsProperties {
13971410
effectiveDateTime?: Date;
13981411
expiryDate?: Date;
13991412
extendedStatusInfo?: ExtendedStatusInfo;
1413+
fulfillmentCreatedDateTime?: Date;
14001414
instanceFlexibility?: InstanceFlexibility;
14011415
readonly lastUpdatedDateTime?: Date;
14021416
// (undocumented)

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)