Skip to content

Commit

Permalink
[hold on]add directive in containerregistry ts.md (#24905)
Browse files Browse the repository at this point in the history
* add directive in containerregistry ts.md

* update
  • Loading branch information
kazrael2119 authored and jnlycklama committed Nov 8, 2023
1 parent 9429619 commit 156b77b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ typescript:
package-name: "@azure/arm-containerregistry"
output-folder: "$(typescript-sdks-folder)/sdk/containerregistry/arm-containerregistry"
generate-metadata: true

directive:
- from: containerregistry_build.json
where: $.definitions.IdentityProperties.properties
transform: >
$.principalId['readOnly'] = true;
$.tenantId['readOnly'] = true;
- from: containerregistry_build.json
where: $.definitions.UserIdentityProperties.properties
transform: >
$.principalId['readOnly'] = true;
$.clientId['readOnly'] = true;
- from: containerregistry_build.json
where: $.definitions.ErrorResponse
transform: >
$['x-ms-client-name'] = 'ErrorResponseForContainerRegistry';
```

0 comments on commit 156b77b

Please sign in to comment.