Skip to content

Commit

Permalink
CodeGen from PR 18244 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5381dceacd386f567f5e6f50bef81060200dbc6e into 8a9da8395b884de6af8a16e727c9e8dca0a5949d
  • Loading branch information
SDKAuto committed Mar 18, 2022
1 parent dccf667 commit 37cd0e3
Show file tree
Hide file tree
Showing 13 changed files with 366 additions and 147 deletions.
20 changes: 20 additions & 0 deletions sdk/reservations/arm-reservations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Release History

## 7.1.0 (2022-03-18)

**Features**

- Interface CurrentQuotaLimit has a new optional parameter id
- Interface CurrentQuotaLimit has a new optional parameter name
- Interface CurrentQuotaLimit has a new optional parameter type
- Interface CurrentQuotaLimitBase has a new optional parameter id
- Interface CurrentQuotaLimitBase has a new optional parameter name
- Interface CurrentQuotaLimitBase has a new optional parameter type
- Interface GetCatalogOptionalParams has a new optional parameter offerId
- Interface GetCatalogOptionalParams has a new optional parameter planId
- Interface GetCatalogOptionalParams has a new optional parameter publisherId
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter idPropertiesId
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter namePropertiesName
- Interface QuotaRequestOneResourceSubmitResponse has a new optional parameter typePropertiesType
- Interface ReservationOrderResponse has a new optional parameter benefitStartTime
- Interface ReservationsProperties has a new optional parameter benefitStartTime


## 7.0.0 (2022-01-21)

The package of @azure/arm-reservations is using our next generation design principles since version 7.0.0, which contains breaking changes.
Expand Down
3 changes: 2 additions & 1 deletion sdk/reservations/arm-reservations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { AzureReservationAPI } = require("@azure/arm-reservations");
const { DefaultAzureCredential } = require("@azure/identity");
const client = new AzureReservationAPI(new DefaultAzureCredential());
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new AzureReservationAPI(new DefaultAzureCredential(), subscriptionId);
```


Expand Down
7 changes: 4 additions & 3 deletions sdk/reservations/arm-reservations/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
"commit": "3ddcb663f8f7b66cc816b3eab14c26217047c292",
"readme": "specification/reservations/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.1.3",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/reservations/arm-reservations/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-reservations.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"
}
}
}
}
}
33 changes: 16 additions & 17 deletions sdk/reservations/arm-reservations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureReservationAPI.",
"version": "7.0.0",
"engines": { "node": ">=12.0.0" },
"version": "7.1.0",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -14,7 +16,13 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -41,7 +49,9 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down Expand Up @@ -88,16 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{ "path": "src/AzureReservationAPI.ts", "prefix": "packageDetails" }
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": ["azure"],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-reservations?view=azure-node-preview"
}
}
"autoPublish": true
}
18 changes: 16 additions & 2 deletions sdk/reservations/arm-reservations/review/arm-reservations.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,20 @@ export interface CreateGenericQuotaRequestParameters {

// @public
export interface CurrentQuotaLimit {
readonly id?: string;
readonly message?: string;
readonly name?: string;
properties?: QuotaProperties;
readonly provisioningState?: QuotaRequestState;
readonly type?: string;
}

// @public
export interface CurrentQuotaLimitBase {
readonly id?: string;
readonly name?: string;
properties?: QuotaProperties;
readonly type?: string;
}

// @public
Expand Down Expand Up @@ -366,6 +372,9 @@ export type GetAppliedReservationListResponse = AppliedReservations;
// @public
export interface GetCatalogOptionalParams extends coreClient.OperationOptions {
location?: string;
offerId?: string;
planId?: string;
publisherId?: string;
reservedResourceType?: string;
}

Expand Down Expand Up @@ -963,7 +972,7 @@ export interface QuotaCreateOrUpdateOptionalParams extends coreClient.OperationO
}

// @public
export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
export type QuotaCreateOrUpdateResponse = CurrentQuotaLimitBase;

// @public
export interface QuotaGetHeaders {
Expand Down Expand Up @@ -1044,12 +1053,15 @@ export interface QuotaRequestDetailsList {
// @public
export interface QuotaRequestOneResourceSubmitResponse {
readonly id?: string;
readonly idPropertiesId?: string;
readonly message?: string;
readonly name?: string;
readonly namePropertiesName?: string;
properties?: QuotaProperties;
readonly provisioningState?: QuotaRequestState;
readonly requestSubmitTime?: Date;
readonly type?: string;
readonly typePropertiesType?: string;
}

// @public
Expand Down Expand Up @@ -1120,7 +1132,7 @@ export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
export type QuotaUpdateResponse = CurrentQuotaLimitBase;

// @public (undocumented)
export interface RenewPropertiesResponse {
Expand Down Expand Up @@ -1329,6 +1341,7 @@ export type ReservationOrderPurchaseResponse = ReservationOrderResponse;

// @public (undocumented)
export interface ReservationOrderResponse {
benefitStartTime?: Date;
billingPlan?: ReservationBillingPlan;
createdDateTime?: Date;
displayName?: string;
Expand Down Expand Up @@ -1389,6 +1402,7 @@ export interface ReservationsProperties {
appliedScopes?: string[];
appliedScopeType?: AppliedScopeType;
archived?: boolean;
benefitStartTime?: Date;
billingPlan?: ReservationBillingPlan;
billingScopeId?: string;
capabilities?: string;
Expand Down
7 changes: 5 additions & 2 deletions sdk/reservations/arm-reservations/src/azureReservationAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class AzureReservationAPI extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-reservations/7.0.0`;
const packageDetails = `azsdk-js-arm-reservations/7.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -152,7 +152,10 @@ const getCatalogOperationSpec: coreClient.OperationSpec = {
queryParameters: [
Parameters.apiVersion,
Parameters.reservedResourceType,
Parameters.location
Parameters.location,
Parameters.publisherId,
Parameters.offerId,
Parameters.planId
],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
Expand Down
Loading

0 comments on commit 37cd0e3

Please sign in to comment.