Skip to content

Commit

Permalink
Generated from ffcf1abe1981e08346b67245ec0d6ff59b27dfed (#641)
Browse files Browse the repository at this point in the history
typo: Microsoft.Consumption

- perdiod -> period
- scenarion -> scenario
- servicetype -> serviceType
- additoinalinfo -> additional info
- reservationid -> reservationId
- subscripotionId -> subscriptionId
- recomendations -> recommendations
- assiciated -> associated
- Recomended -> Recommended
- Departmentt -> Department
- Trim trailing whitespace
  • Loading branch information
AutorestCI authored Dec 3, 2018
1 parent 60cc241 commit 037c523
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 73 deletions.
53 changes: 17 additions & 36 deletions packages/@azure/arm-consumption/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
## Azure ConsumptionManagementClient SDK for JavaScript

# Azure ConsumptionManagementClient SDK for JavaScript
This package contains an isomorphic SDK for ConsumptionManagementClient.

### Currently supported environments

## Currently supported environments
- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

## How to Install
```
npm install @azure/arm-consumption
```

### How to use

#### nodejs - Authentication, client creation and list usageDetails as an example written in TypeScript.

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

```
npm install @azure/ms-rest-nodeauth
```
## How to use

##### Sample code
### nodejs - Authentication, client creation and list usageDetails as an example written in TypeScript.

```ts
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";
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";
import * as msRestNodeAuth from "ms-rest-nodeauth";
import { ConsumptionManagementClient, ConsumptionManagementModels, ConsumptionManagementMappers } from "@azure/arm-consumption";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

Expand All @@ -48,16 +38,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and list usageDetails as an example written in JavaScript.

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

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

##### Sample code

### browser - Authentication, client creation and list usageDetails as an example written in JavaScript.
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
Expand All @@ -66,11 +47,11 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
<html lang="en">
<head>
<title>@azure/arm-consumption sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-consumption/dist/arm-consumption.js"></script>
<script type="text/javascript">
<script>
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
Expand All @@ -97,10 +78,10 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
});
</script>
</head>
<body></body>
<body>
</body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
# Related projects
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";

const packageName = "@azure/arm-consumption";
const packageVersion = "0.1.0";
Expand Down
16 changes: 8 additions & 8 deletions packages/@azure/arm-consumption/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* regenerated.
*/

import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js";
import * as msRest from "ms-rest-js";

export { BaseResource, CloudError };

Expand Down 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
4 changes: 2 additions & 2 deletions packages/@azure/arm-consumption/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* regenerated.
*/

import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js";
import * as msRest from "ms-rest-js";

export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-consumption/lib/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";

export const acceptLanguage: msRest.OperationParameter = {
parameterPath: "acceptLanguage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/aggregatedCostMappers";
import * as Parameters from "../models/parameters";
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-consumption/lib/operations/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/balancesMappers";
import * as Parameters from "../models/parameters";
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-consumption/lib/operations/budgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/budgetsMappers";
import * as Parameters from "../models/parameters";
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-consumption/lib/operations/charges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/chargesMappers";
import * as Parameters from "../models/parameters";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/forecastsMappers";
import * as Parameters from "../models/parameters";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/marketplacesMappers";
import * as Parameters from "../models/parameters";
Expand Down 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 @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/operationsMappers";
import * as Parameters from "../models/parameters";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/priceSheetMappers";
import * as Parameters from "../models/parameters";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/reservationRecommendationsMappers";
import * as Parameters from "../models/parameters";
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/reservationsDetailsMappers";
import * as Parameters from "../models/parameters";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/reservationsSummariesMappers";
import * as Parameters from "../models/parameters";
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-consumption/lib/operations/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/tagsMappers";
import * as Parameters from "../models/parameters";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/usageDetailsMappers";
import * as Parameters from "../models/parameters";
Expand Down
4 changes: 2 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",
"ms-rest-azure-js": "^1.0.181",
"ms-rest-js": "^1.0.460",
"tslib": "^1.9.3"
},
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions packages/@azure/arm-consumption/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve";
*/
const config = {
input: './esm/consumptionManagementClient.js',
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
external: ["ms-rest-js", "ms-rest-azure-js"],
output: {
file: "./dist/arm-consumption.js",
format: "umd",
name: "Azure.ArmConsumption",
sourcemap: true,
globals: {
"@azure/ms-rest-js": "msRest",
"@azure/ms-rest-azure-js": "msRestAzure"
"ms-rest-js": "msRest",
"ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-consumption/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"outDir": "./esm",
"importHelpers": true
},
"include": ["./lib/**/*.ts"],
"include": ["./lib/**/*"],
"exclude": ["node_modules"]
}

0 comments on commit 037c523

Please sign in to comment.