Skip to content

Commit d0914ef

Browse files
MPG migration - powerbidedicated (#39570)
* MPG migration - powerbidedicated * WIP * WIP * refine * Update specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/PowerBIDedicated/client.tsp Co-authored-by: Wei Hu <live1206@gmail.com> * Clarify suppress comment for legacy pageable usage Updated suppress comment for legacy usage to clarify its purpose. --------- Co-authored-by: Wei Hu <live1206@gmail.com>
1 parent 2b392d9 commit d0914ef

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import "@azure-tools/typespec-client-generator-core";
2+
import "./main.tsp";
3+
4+
using Azure.ClientGenerator.Core;
5+
using Azure.Core;
6+
using Azure.ResourceManager.Foundations;
7+
using Microsoft.PowerBIDedicated;
8+
9+
@@clientName(Capacities.getDetails, "get", "csharp");
10+
@@clientName(CheckCapacityNameAvailabilityParameters,
11+
"CheckCapacityNameAvailabilityContent",
12+
"csharp"
13+
);
14+
@@clientName(CheckCapacityNameAvailabilityParameters.type,
15+
"ResourceType",
16+
"csharp"
17+
);
18+
@@clientName(CapacitiesOperationGroup.checkNameAvailability,
19+
"checkNameAvailabilityCapacity",
20+
"csharp"
21+
);
22+
@@alternateType(Azure.ResourceManager.CommonTypes.Resource.id,
23+
Azure.Core.armResourceIdentifier,
24+
"csharp"
25+
);
26+
@@clientName(SkuDetailsForExistingResource, "SkuDetails", "csharp");
27+
@@alternateType(DedicatedCapacityMutableProperties.tenantId, uuid, "csharp");
28+
@@alternateType(CapacitiesOperationGroup.checkNameAvailability::parameters.location,
29+
Azure.Core.azureLocation,
30+
"csharp"
31+
);
32+
@@clientName(CapacitiesOperationGroup.listSkus, "GetSkusCapacities", "csharp");
33+
34+
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "make it pageable for backwards compatibility"
35+
@@Azure.ClientGenerator.Core.Legacy.markAsPageable(Capacities.listSkusForCapacity,
36+
"csharp"
37+
);
38+
39+
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "make it pageable for backwards compatibility"
40+
@@Azure.ClientGenerator.Core.Legacy.markAsPageable(CapacitiesOperationGroup.listSkus,
41+
"csharp"
42+
);
43+
44+
@@clientName(CapacitySkuTier.PBIE_Azure, "PbieAzure", "csharp");

specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/PowerBIDedicated/tspconfig.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ options:
1111
arm-types-dir: "{project-root}/../../../../common-types/resource-management"
1212
output-file: "{version-status}/{version}/openapi.json"
1313
examples-dir: "{project-root}/examples"
14+
"@azure-typespec/http-client-csharp-mgmt":
15+
emitter-output-dir: "{output-dir}/{service-dir}/{namespace}"
16+
namespace: "Azure.ResourceManager.PowerBIDedicated"
1417
"@azure-tools/typespec-python":
1518
emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-powerbidedicated"
1619
namespace: "azure.mgmt.powerbidedicated"

0 commit comments

Comments
 (0)