Skip to content

Commit

Permalink
Merge branch 'v2-dev-changeanalysis-Microsoft.ChangeAnalysis-2020-04-…
Browse files Browse the repository at this point in the history
…01-preview' of https://github.com/alexaloni/azure-rest-api-specs into v2-dev-changeanalysis-Microsoft.ChangeAnalysis-2020-04-01-preview
  • Loading branch information
Alex Dubinkov committed May 7, 2020
2 parents 8acbff5 + 4a15edc commit f596cc2
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions specification/changeanalysis/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor

These are the global settings for the changeanalysis.

```yaml
``` yaml
openapi-type: arm
tag: package-2020-04-01-preview
```
Expand All @@ -33,7 +33,7 @@ tag: package-2020-04-01-preview
These settings apply only when `--tag=package-2020-04-01-preview` is specified on the command line.

```yaml $(tag) == 'package-2020-04-01-preview'
``` yaml $(tag) == 'package-2020-04-01-preview'
input-file:
- Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
Expand All @@ -48,7 +48,7 @@ input-file:
This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

```yaml $(swagger-to-sdk)
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
Expand Down Expand Up @@ -79,3 +79,37 @@ See configuration in [readme.typescript.md](./readme.typescript.md)

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

## Suppression

``` yaml
directive:
- suppress: BodyTopLevelProperties
where: $.definitions.ConfigurationProfileResource.properties
from: changeanalysis.json
reason: |-
https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
The systemData should be top level element based on the new requirement:
{
"id": "/subscriptions/{id}/resourceGroups/{group}/providers/{rpns}/{type}/{name}",
"name": "{name}",
"type": "{resourceProviderNamespace}/{resourceType}",
"location": "North US",
"systemData":{
"createdBy": "<string>",
"createdByType": "<User|Application|ManagedIdentity|Key>",
"createdAt": "<date-time>",
"lastModifiedBy": "<string>",
"lastModifiedByType": "<User|Application|ManagedIdentity|Key>",
"lastModifiedAt": "<date-time>"
},
"tags": {
"key1": "value 1",
"key2": "value 2"
},
"kind": "resource kind",
"properties": {
"comment": "Resource defined structure"
}
}
```

0 comments on commit f596cc2

Please sign in to comment.