Skip to content

Commit

Permalink
CodeGen from PR 16123 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 839983bb2ddf09f1a76337b15fc6c36fac5a29df into 06a504c2ecd7e580bfbd67adf4a1cdbeb49eba77
  • Loading branch information
SDKAuto committed Sep 22, 2021
1 parent 3c7a547 commit f740e94
Show file tree
Hide file tree
Showing 21 changed files with 856 additions and 508 deletions.
28 changes: 8 additions & 20 deletions sdk/consumption/arm-consumption/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@ const filter = "testfilter";
const skiptoken = "testskiptoken";
const top = 1;
const metric = "actualcost";
client.usageDetails.list(scope,{
expand: expand,
filter: filter,
skiptoken: skiptoken,
top: top,
metric: metric
}).then((result) => {
client.usageDetails.list(scope, expand, filter, skiptoken, top, metric).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down Expand Up @@ -104,19 +98,13 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const skiptoken = "testskiptoken";
const top = 1;
const metric = "actualcost";
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);
});
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);
});
</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 @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/consumption/arm-consumption",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/consumption/arm-consumption",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class ConsumptionManagementClientContext extends msRestAzure.AzureService

super(credentials, options);

this.apiVersion = '2019-10-01';
this.apiVersion = '2021-05-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Loading

0 comments on commit f740e94

Please sign in to comment.