-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to Microsoft.AzureTerraform TypeSpec
Based from .NET SDK review: 1. Use ArmOperationStatus from library instead of defining our own 2. Wrap both exportTerraform and operationStatuses operations in single ExportTerraform interface 3. Added client.tsp override so the generated method name for .NET SDK complies with the guidelines 4. Removed unecessary suppresses and DRY-ed response types
- Loading branch information
Showing
8 changed files
with
112 additions
and
104 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
specification/terraform/Microsoft.AzureTerraform.Management/client.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import "@azure-tools/typespec-client-generator-core"; | ||
import "./main.tsp"; | ||
|
||
using Azure.ClientGenerator.Core; | ||
using Microsoft.AzureTerraform; | ||
|
||
@@clientName(ExportTerraform.exportTerraform, "ExportTerraform", "csharp"); | ||
@@clientName(ExportTerraform.operationStatuses, "OperationStatuses", "csharp"); |
2 changes: 1 addition & 1 deletion
2
...form/Microsoft.AzureTerraform.Management/examples/2023-07-01-preview/ExportTerraform.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...m/Microsoft.AzureTerraform.Management/examples/2023-07-01-preview/GetOperationStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...manager/Microsoft.AzureTerraform/preview/2023-07-01-preview/examples/ExportTerraform.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ager/Microsoft.AzureTerraform/preview/2023-07-01-preview/examples/GetOperationStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters