Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme file for consumption #17726

Merged
merged 2 commits into from
Sep 17, 2021
Merged
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
28 changes: 20 additions & 8 deletions sdk/consumption/arm-consumption/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ const filter = "testfilter";
const skiptoken = "testskiptoken";
const top = 1;
const metric = "actualcost";
client.usageDetails.list(scope, expand, filter, skiptoken, top, metric).then((result) => {
client.usageDetails.list(scope,{
expand: expand,
filter: filter,
skiptoken: skiptoken,
top: top,
metric: metric
}).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down Expand Up @@ -98,13 +104,19 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const skiptoken = "testskiptoken";
const top = 1;
const metric = "actualcost";
client.usageDetails.list(scope, expand, filter, skiptoken, top, metric).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
client.usageDetails.list(scope,{
expand: expand,
filter: filter,
skiptoken: skiptoken,
top: top,
metric: metric
}).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
</script>
</head>
<body></body>
Expand Down
2 changes: 1 addition & 1 deletion sdk/consumption/arm-consumption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-consumption",
"author": "Microsoft Corporation",
"description": "ConsumptionManagementClient Library with typescript type definitions for node.js and browser.",
"version": "8.0.0",
"version": "8.0.1",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.1.0",
"@azure/ms-rest-js": "^2.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";

const packageName = "@azure/arm-consumption";
const packageVersion = "8.0.0";
const packageVersion = "8.0.1";

export class ConsumptionManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials | TokenCredential;
Expand Down