You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
put it under: http/azure/arm/models/common-types/managed-identity/main.tsp
usage
modelService is TrackedResource<ServiceProperties>{
@doc("The name of Azure API Center service.")
@maxLength(90)
@minLength(1)
@pattern("^[a-zA-Z0-9-]{3,90}$")
@path
@key("serviceName")
@segment("services")name: string;
...ManagedServiceIdentityProperty;}
Project Setup
Refer to https://github.com/Azure/cadl-ranch/blob/main/README.md for dev setup and PR prep.
Additionally: https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/README.md
managed-identity definition
https://github.com/Azure/typespec-azure/blob/fe90e201b7ad8bda7f98e786debfae37c025ee98/packages/typespec-azure-resource-manager/lib/common-types/managed-identity.tsp#L13
cadl-ranch-specs folder
put it under: http/azure/arm/models/common-types/managed-identity/main.tsp
usage
https://github.com/Azure/azure-rest-api-specs/blob/44cbf51b9eee8a2dbf55ced61a61032aaed0148b/specification/apicenter/ApiCenter.Management/Service.tsp#L22
Test case
a simple PUT(createOrUpdate) and GET operation should suffice.
https://github.com/Azure/azure-rest-api-specs/blob/44cbf51b9eee8a2dbf55ced61a61032aaed0148b/specification/apicenter/ApiCenter.Management/Service.tsp#L27-L30
Candidate scenario:
Example
PR for adding test case for TrackedResource, ProxyResource:
#588
main.tsp: https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http/azure/arm/models/resources/main.tsp
(We only need one main.tsp for managed-identity, unlike resources, it has toplevel.tsp, etc)
mockapi.ts: https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http/azure/arm/models/resources/mockapi.ts
The text was updated successfully, but these errors were encountered: