Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bb868e8
converted
welovej Dec 12, 2025
5427c57
could compile
welovej Dec 12, 2025
3e0f034
Update models.tsp
welovej Dec 12, 2025
a171a85
update
welovej Dec 12, 2025
637a606
Update routes.tsp
welovej Dec 12, 2025
dc91025
update
welovej Dec 12, 2025
937a129
update
welovej Dec 15, 2025
192352d
update
welovej Dec 15, 2025
7e1aace
update
welovej Dec 15, 2025
3a317ef
update
welovej Dec 15, 2025
dbce7cd
Merge branch 'main' into TspMig-commerce
v-jiaodi Jan 8, 2026
25a7455
Update routes.tsp
ChenxiJiang333 Jan 8, 2026
306689e
Create client.tsp
ChenxiJiang333 Jan 8, 2026
003e90e
delete before relocate
welovej Jan 9, 2026
782a3ad
relocate to conform v2 structure
welovej Jan 9, 2026
d5468d8
feat(commerce): add Java client customizations and update emitter opt…
v-huizhu2 Jan 9, 2026
5849a03
Merge pull request #13 from v-huizhu2/java_mgmt_fix_commerce
welovej Jan 9, 2026
f059801
Update routes.tsp
ChenxiJiang333 Jan 9, 2026
2ad75ad
Update client.tsp
ChenxiJiang333 Jan 9, 2026
5bbbde2
Remove Java client and alternate type from client.tsp
v-huizhu2 Jan 12, 2026
9077a50
Add stream-style-serialization option to tspconfig
v-huizhu2 Jan 12, 2026
f96c2c9
Update client.tsp
welovej Jan 12, 2026
4a1289a
update
welovej Jan 12, 2026
9260462
Revert "update"
welovej Jan 12, 2026
d844ee7
update
welovej Jan 12, 2026
fcd15da
Update specification/commerce/resource-manager/Microsoft.Commerce/Com…
weidongxu-microsoft Jan 12, 2026
f1f9875
add go config
jliusan Jan 12, 2026
c850c67
revert go config
jliusan Jan 12, 2026
24ffc18
Update tspconfig.yaml by removing unused properties
v-jiaodi Jan 15, 2026
896ca84
update client name
v-jiaodi Jan 15, 2026
c0defab
Enable compatibility-lro in tspconfig.yaml
v-jiaodi Jan 22, 2026
07724ef
Remove compatibility-lro from tspconfig.yaml
v-jiaodi Feb 2, 2026
4e5aebc
update
welovej Feb 10, 2026
ec31f62
Merge branch 'main' into TspMig-commerce
pshao25 Feb 10, 2026
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using Microsoft.Commerce;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@@Legacy.flattenProperty(UsageAggregation.properties);

@@clientLocation(UsageAggregatesOperationGroup.list, "UsageAggregates");

@@clientLocation(RateCardOperationGroup.get, "RateCard");
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using Microsoft.Commerce;

@@clientName(Microsoft.Commerce, "UsageManagementClient", "python, javascript");
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"$filter": "OfferDurableId eq 'MS-AZR-0003P' and Currency eq 'USD' and Locale eq 'en-US' and RegionInfo eq 'US'",
"api-version": "2015-06-01-preview",
"subscriptionId": "6d61cc05-8f8f-4916-b1b9-f1d9c25aae27"
},
"title": "GetRateCard",
"responses": {
"200": {
"body": {
"Meters": [
{
"EffectiveDate": "2017-09-01T00:00:00Z",
"IncludedQuantity": 0,
"MeterCategory": "Test Category",
"MeterId": "1d7518e5-bc2f-4a93-9057-1b3047856645",
"MeterName": "Test Meter",
"MeterRates": {
"0": 1.99,
"100": 0.99
},
"MeterRegion": "US West",
"MeterSubCategory": "Test Subcategory",
"MeterTags": [
"Third Party"
],
"Unit": "Hours"
}
],
"OfferTerms": []
}
}
},
"operationId": "RateCard_Get"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"aggregationGranularity": "Daily",
"api-version": "2015-06-01-preview",
"reportedEndTime": "2015-06-01T00:00:00+00:00",
"reportedStartTime": "2014-05-01T00:00:00+00:00",
"showDetails": "true",
"subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b"
},
"title": "GetUsageAggregatesList",
"responses": {
"200": {
"body": {
"value": [
{
"name": "Daily_BRSDT_20140501_0000",
"type": "Microsoft.Commerce/UsageAggregate",
"id": "/subscriptions/f68815e6-3c41-45ef-bbd8-5f83303c396b/providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20140501_0000",
"properties": {
"infoFields": {},
"meterCategory": "Storage",
"meterId": "0e9d0c9b-ab6d-4312-9c7e-3794e22af9c4",
"meterName": "Standard IO – Page Blob/Disk (GB)",
"meterSubCategory": "Geo Redundant",
"quantity": 0.057865,
"subscriptionId": "f68815e6-3c41-45ef-bbd8-5f83303c396b",
"unit": "GB",
"usageEndTime": "2015-03-04T00:00:00+00:00",
"usageStartTime": "2015-03-03T00:00:00+00:00"
}
}
]
}
},
"202": {
"body": {
"error": {
"code": "aaaaaaaaaaaaaaaaaaaaaa",
"message": "aaaaaaaaaaaaaaaaaaaa"
}
}
}
},
"operationId": "UsageAggregates_List"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS
* Generated by package: @autorest/openapi-to-typespec
* Parameters used:
* isFullCompatible: true
* guessResourceKey: false
* Version: 0.11.12
* Date: 2025-12-12T02:06:35.769Z
*/
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "./models.tsp";
import "./back-compatible.tsp";
import "./routes.tsp";

using TypeSpec.Rest;
using TypeSpec.Http;
using Azure.ResourceManager.Foundations;
using Azure.Core;
using Azure.ResourceManager;
using TypeSpec.Versioning;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@armProviderNamespace
@service(#{ title: "UsageManagementClient" })
@versioned(Versions)
// FIXME: Common type version not set. Set to v3.
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3)
namespace Microsoft.Commerce;

/**
* The available API versions.
*/
enum Versions {
/**
* The 2015-06-01-preview API version.
*/
v2015_06_01_preview: "2015-06-01-preview",
}
Loading
Loading