-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update TypeSpec for DeviceRegistry (#29319)
* Update TypeSpec for DeviceRegistry * add client.tsp * fix model validation * fix example * fix example * remove unused csharp option * update client.tsp * fix tsp validation * fix more tsp validation * update csharp option
- Loading branch information
Showing
9 changed files
with
58 additions
and
235 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
specification/deviceregistry/DeviceRegistry.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,18 @@ | ||
import "./main.tsp"; | ||
import "@azure-tools/typespec-client-generator-core"; | ||
|
||
using Azure.ClientGenerator.Core; | ||
|
||
namespace Microsoft.DeviceRegistry; | ||
|
||
@@clientName(Asset, "DeviceRegistryAsset", "csharp"); | ||
@@clientName(AssetEndpointProfile, | ||
"DeviceRegistryAssetEndpointProfile", | ||
"csharp" | ||
); | ||
@@clientName(ExtendedLocation, "DeviceRegistryExtendedLocation", "csharp"); | ||
@@clientName(Event, "AssetEvent", "csharp"); | ||
@@clientName(ProvisioningState, "DeviceRegistryProvisioningState", "csharp"); | ||
@@clientName(ExtendedLocation.type, "ExtendedLocationType", "csharp"); | ||
@@access(OperationStatus.get, Access.internal, "csharp"); | ||
@@access(Operations.list, Access.internal, "csharp"); |
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
Oops, something went wrong.