Skip to content

Commit 4277fe9

Browse files
author
SDKAuto
committed
CodeGen from PR 18208 in Azure/azure-rest-api-specs
Merge 4772ab9f3e13afc920d577bea23077ec30e32528 into 2abe647120f14bb145968a5543ead8ed51394498
1 parent a38203f commit 4277fe9

File tree

12 files changed

+299
-145
lines changed

12 files changed

+299
-145
lines changed

sdk/reservations/arm-reservations/CHANGELOG.md

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

3+
## 7.1.0 (2022-03-15)
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 QuotaRequestOneResourceSubmitResponse has a new optional parameter idPropertiesId
14+
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter namePropertiesName
15+
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter typePropertiesType
16+
17+
318
## 7.0.0 (2022-01-21)
419

520
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": "d6191d641c750189751bde4466749fa589265abc",
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/typescript@6.0.0-alpha.16.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/typescript@6.0.0-alpha.16.20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.1.1",
7+
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
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: 11 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
@@ -963,7 +969,7 @@ export interface QuotaCreateOrUpdateOptionalParams extends coreClient.OperationO
963969
}
964970

965971
// @public
966-
export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
972+
export type QuotaCreateOrUpdateResponse = CurrentQuotaLimitBase;
967973

968974
// @public
969975
export interface QuotaGetHeaders {
@@ -1044,12 +1050,15 @@ export interface QuotaRequestDetailsList {
10441050
// @public
10451051
export interface QuotaRequestOneResourceSubmitResponse {
10461052
readonly id?: string;
1053+
readonly idPropertiesId?: string;
10471054
readonly message?: string;
10481055
readonly name?: string;
1056+
readonly namePropertiesName?: string;
10491057
properties?: QuotaProperties;
10501058
readonly provisioningState?: QuotaRequestState;
10511059
readonly requestSubmitTime?: Date;
10521060
readonly type?: string;
1061+
readonly typePropertiesType?: string;
10531062
}
10541063

10551064
// @public
@@ -1120,7 +1129,7 @@ export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
11201129
}
11211130

11221131
// @public
1123-
export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
1132+
export type QuotaUpdateResponse = CurrentQuotaLimitBase;
11241133

11251134
// @public (undocumented)
11261135
export interface RenewPropertiesResponse {

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

Lines changed: 1 addition & 1 deletion
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}`

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

Lines changed: 83 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,21 @@ export interface ChangeDirectoryResult {
827827

828828
/** Quota properties. */
829829
export interface CurrentQuotaLimitBase {
830+
/**
831+
* The quota request ID.
832+
* NOTE: This property will not be serialized. It can only be populated by the server.
833+
*/
834+
readonly id?: string;
835+
/**
836+
* The name of the quota request.
837+
* NOTE: This property will not be serialized. It can only be populated by the server.
838+
*/
839+
readonly name?: string;
840+
/**
841+
* Type of resource. "Microsoft.Capacity/ServiceLimits"
842+
* NOTE: This property will not be serialized. It can only be populated by the server.
843+
*/
844+
readonly type?: string;
830845
/** Quota properties for the resource. */
831846
properties?: QuotaProperties;
832847
}
@@ -899,42 +914,6 @@ export interface ServiceErrorDetail {
899914
readonly message?: string;
900915
}
901916

902-
/** Response for the quota submission request. */
903-
export interface QuotaRequestOneResourceSubmitResponse {
904-
/**
905-
* The quota request ID.
906-
* NOTE: This property will not be serialized. It can only be populated by the server.
907-
*/
908-
readonly id?: string;
909-
/**
910-
* The name of the quota request.
911-
* NOTE: This property will not be serialized. It can only be populated by the server.
912-
*/
913-
readonly name?: string;
914-
/**
915-
* Type of resource. "Microsoft.Capacity/ServiceLimits"
916-
* NOTE: This property will not be serialized. It can only be populated by the server.
917-
*/
918-
readonly type?: string;
919-
/**
920-
* The quota request status.
921-
* NOTE: This property will not be serialized. It can only be populated by the server.
922-
*/
923-
readonly provisioningState?: QuotaRequestState;
924-
/**
925-
* User friendly status message.
926-
* NOTE: This property will not be serialized. It can only be populated by the server.
927-
*/
928-
readonly message?: string;
929-
/**
930-
* The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
931-
* NOTE: This property will not be serialized. It can only be populated by the server.
932-
*/
933-
readonly requestSubmitTime?: Date;
934-
/** Quota properties for the resource. */
935-
properties?: QuotaProperties;
936-
}
937-
938917
/** Response with request ID that the quota request was accepted. */
939918
export interface QuotaRequestSubmitResponse201 {
940919
/**
@@ -1073,6 +1052,21 @@ export interface CurrentQuotaLimit {
10731052
* NOTE: This property will not be serialized. It can only be populated by the server.
10741053
*/
10751054
readonly message?: string;
1055+
/**
1056+
* The quota request ID.
1057+
* NOTE: This property will not be serialized. It can only be populated by the server.
1058+
*/
1059+
readonly id?: string;
1060+
/**
1061+
* The name of the quota request.
1062+
* NOTE: This property will not be serialized. It can only be populated by the server.
1063+
*/
1064+
readonly name?: string;
1065+
/**
1066+
* Type of resource. "Microsoft.Capacity/ServiceLimits"
1067+
* NOTE: This property will not be serialized. It can only be populated by the server.
1068+
*/
1069+
readonly type?: string;
10761070
/** Quota properties for the resource. */
10771071
properties?: QuotaProperties;
10781072
}
@@ -1091,6 +1085,57 @@ export interface CreateGenericQuotaRequestParameters {
10911085
value?: CurrentQuotaLimitBase[];
10921086
}
10931087

1088+
/** Response for the quota submission request. */
1089+
export interface QuotaRequestOneResourceSubmitResponse {
1090+
/**
1091+
* The quota request ID.
1092+
* NOTE: This property will not be serialized. It can only be populated by the server.
1093+
*/
1094+
readonly id?: string;
1095+
/**
1096+
* The name of the quota request.
1097+
* NOTE: This property will not be serialized. It can only be populated by the server.
1098+
*/
1099+
readonly name?: string;
1100+
/**
1101+
* Type of resource. "Microsoft.Capacity/ServiceLimits"
1102+
* NOTE: This property will not be serialized. It can only be populated by the server.
1103+
*/
1104+
readonly type?: string;
1105+
/**
1106+
* The quota request status.
1107+
* NOTE: This property will not be serialized. It can only be populated by the server.
1108+
*/
1109+
readonly provisioningState?: QuotaRequestState;
1110+
/**
1111+
* User friendly status message.
1112+
* NOTE: This property will not be serialized. It can only be populated by the server.
1113+
*/
1114+
readonly message?: string;
1115+
/**
1116+
* The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
1117+
* NOTE: This property will not be serialized. It can only be populated by the server.
1118+
*/
1119+
readonly requestSubmitTime?: Date;
1120+
/**
1121+
* The quota request ID.
1122+
* NOTE: This property will not be serialized. It can only be populated by the server.
1123+
*/
1124+
readonly idPropertiesId?: string;
1125+
/**
1126+
* The name of the quota request.
1127+
* NOTE: This property will not be serialized. It can only be populated by the server.
1128+
*/
1129+
readonly namePropertiesName?: string;
1130+
/**
1131+
* Type of resource. "Microsoft.Capacity/ServiceLimits"
1132+
* NOTE: This property will not be serialized. It can only be populated by the server.
1133+
*/
1134+
readonly typePropertiesType?: string;
1135+
/** Quota properties for the resource. */
1136+
properties?: QuotaProperties;
1137+
}
1138+
10941139
/** Response for the quota submission request. */
10951140
export interface QuotaRequestSubmitResponse {
10961141
/**
@@ -1992,7 +2037,7 @@ export interface QuotaCreateOrUpdateOptionalParams
19922037
}
19932038

19942039
/** Contains response data for the createOrUpdate operation. */
1995-
export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
2040+
export type QuotaCreateOrUpdateResponse = CurrentQuotaLimitBase;
19962041

19972042
/** Optional parameters. */
19982043
export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
@@ -2003,7 +2048,7 @@ export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
20032048
}
20042049

20052050
/** Contains response data for the update operation. */
2006-
export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
2051+
export type QuotaUpdateResponse = CurrentQuotaLimitBase;
20072052

20082053
/** Optional parameters. */
20092054
export interface QuotaListOptionalParams extends coreClient.OperationOptions {}

0 commit comments

Comments
 (0)