Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Maps to add version prev…
Browse files Browse the repository at this point in the history
…iew/2020-02-01-preview (#8359)

* adding system data and description fixes

* adding specific readonly and desc

* fixing types systemData

* remove sec def

* pretty

* trying to suppress
  • Loading branch information
Daniel Stack authored Feb 17, 2020
1 parent 6e1747c commit 731f2f8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@
"modelAsString": true
}
},
"lastModifiedByAt": {
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The type of identity that last modified the resource."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
"name": "myMapsAccount",
"type": "Microsoft.Maps/accounts",
"location": "global",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z"
},
"tags": {
"test": "true"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,11 @@
"description": "The SKU of this account.",
"$ref": "#/definitions/Sku"
},
"systemData": {
"readOnly": true,
"description": "The system meta data relating to this resource.",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData"
},
"properties": {
"readOnly": true,
"description": "The map account properties.",
Expand Down
5 changes: 5 additions & 0 deletions specification/maps/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ directive:
- Flattening does not work well with polymorphic models.
- PrivateAtlas.properties is an arbitrary dictionary and cannot be flattened.
- MapsAccount.properties is an arbitrary dictionary and cannot be flattened.
- suppress: R3006 # BodyTopLevelProperties
where:
- $.definitions.MapsAccount.properties
reason:
- Currently systemData is not allowed.
- suppress: R3010 # TrackedResourceListByImmediateParent
where:
- $.definitions
Expand Down

0 comments on commit 731f2f8

Please sign in to comment.