Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/@azure/arm-consumption/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ConsumptionManagementClient.

### How to Install

```
```bash
npm install @azure/arm-consumption
```

Expand All @@ -19,13 +19,13 @@ npm install @azure/arm-consumption

##### Install @azure/ms-rest-nodeauth

```
```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
Expand All @@ -52,7 +52,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {

##### Install @azure/ms-rest-browserauth

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down
12 changes: 6 additions & 6 deletions packages/@azure/arm-consumption/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export interface ReservationSummary extends Resource {
readonly reservationId?: string;
/**
* @member {string} [skuName] This is the ARM Sku name. It can be used to
* join with the servicetype field in additoinalinfo in usage records.
* join with the serviceType field in additional info in usage records.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -723,7 +723,7 @@ export interface ReservationDetail extends Resource {
readonly reservationId?: string;
/**
* @member {string} [skuName] This is the ARM Sku name. It can be used to
* join with the servicetype field in additoinalinfo in usage records.
* join with the serviceType field in additional info in usage records.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -757,7 +757,7 @@ export interface ReservationDetail extends Resource {
readonly instanceId?: string;
/**
* @member {number} [totalReservedQuantity] This is the total count of
* instances that are reserved for the reservationid.
* instances that are reserved for the reservationId.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -834,7 +834,7 @@ export interface ReservationRecommendation {
*/
readonly costWithNoReservedInstances?: number;
/**
* @member {number} [recommendedQuantity] Recomended quality for reserved
* @member {number} [recommendedQuantity] Recommended quality for reserved
* instances.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
Expand Down Expand Up @@ -909,7 +909,7 @@ export interface ProxyResource extends BaseResource {
readonly type?: string;
/**
* @member {string} [eTag] eTag of the resource. To handle concurrent update
* scenarion, this field will be used to determine whether the user is
* scenario, this field will be used to determine whether the user is
* updating the latest version or not.
*/
eTag?: string;
Expand Down Expand Up @@ -1064,7 +1064,7 @@ export interface Budget extends ProxyResource {
* budget. The start date must be first of the month and should be less than
* the end date. Budget start date must be on or after June 1, 2017. Future
* start date should not be more than three months. Past start date should
* be selected within the timegrain preiod. There are no restrictions on the
* be selected within the timegrain period. There are no restrictions on the
* end date.
*/
timePeriod: BudgetTimePeriod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Marketplaces {
}

/**
* Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are
* Lists the marketplaces for a scope by billing period and subscriptionId. Marketplaces are
* available via this API only for May 1, 2014 or later.
* @param billingPeriodName Billing Period Name.
* @param [options] The optional parameters
Expand Down Expand Up @@ -358,7 +358,7 @@ export class Marketplaces {
}

/**
* Lists the marketplaces for a scope by billing period and subscripotionId. Marketplaces are
* Lists the marketplaces for a scope by billing period and subscriptionId. Marketplaces are
* available via this API only for May 1, 2014 or later.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ReservationRecommendations {
}

/**
* List of recomendations for purchasing reserved instances.
* List of recommendations for purchasing reserved instances.
* @param [options] The optional parameters
* @returns Promise<Models.ReservationRecommendationsListResponse>
*/
Expand All @@ -51,7 +51,7 @@ export class ReservationRecommendations {
}

/**
* List of recomendations for purchasing reserved instances.
* List of recommendations for purchasing reserved instances.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.ReservationRecommendationsListNextResponse>
Expand Down
5 changes: 3 additions & 2 deletions packages/@azure/arm-consumption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "ConsumptionManagementClient Library with typescript type definitions for node.js and browser.",
"version": "0.1.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.1.0",
"@azure/ms-rest-js": "^1.1.0",
"@azure/ms-rest-azure-js": "^1.2.0",
"@azure/ms-rest-js": "^1.2.0",
"tslib": "^1.9.3"
},
"keywords": [
Expand All @@ -23,6 +23,7 @@
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-consumption",
Expand Down
22 changes: 14 additions & 8 deletions packages/@azure/arm-consumption/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import rollup from "rollup";
import nodeResolve from "rollup-plugin-node-resolve";
import sourcemaps from "rollup-plugin-sourcemaps";

/**
* @type {import('rollup').RollupFileOptions}
* @type {rollup.RollupFileOptions}
*/
const config = {
input: './esm/consumptionManagementClient.js',
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
input: "./esm/consumptionManagementClient.js",
external: [
"@azure/ms-rest-js",
"@azure/ms-rest-azure-js"
],
output: {
file: "./dist/arm-consumption.js",
format: "umd",
Expand All @@ -16,16 +22,16 @@ const config = {
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/`
},
plugins: [
nodeResolve({ module: true })
nodeResolve({ module: true }),
sourcemaps()
]
};

export default config;