Skip to content

Commit

Permalink
[security RP] mgmt, fix for java with directive (Azure#15169)
Browse files Browse the repository at this point in the history
* [security] mgmt, fix for java with directive

* fix readme
  • Loading branch information
weidongxu-microsoft authored and mkarmark committed Jul 20, 2021
1 parent 104a95d commit acd615c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions specification/security/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Java

These settings apply only when `--java` is specified on the command line.


``` yaml $(java)
directive:
- from: externalSecuritySolutions.json
where: $.definitions.ExternalSecuritySolution.allOf[1]
set:
type: object
description: 'Describes an Azure resource with location'
reason: discriminator property is required to be defined in the model
- from: externalSecuritySolutions.json
where: $.definitions.ExternalSecuritySolution.properties
set:
kind:
type: object
description: 'Describes an Azure resource with kind'
enum:
- CEF
- ATA
- AAD
x-ms-enum:
name: ExternalSecuritySolutionKind
modelAsString: true
```
3 changes: 3 additions & 0 deletions specification/security/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-java
- repo: azure-resource-manager-schemas
```

Expand Down Expand Up @@ -512,4 +513,6 @@ See configuration in [readme.typescript.md](./readme.typescript.md)

See configuration in [readme.ruby.md](./readme.ruby.md)

## Java

See configuration in [readme.java.md](./readme.java.md)

0 comments on commit acd615c

Please sign in to comment.