Skip to content

Commit 942f455

Browse files
authored
Adding SystemData property to Microsoft.AzureData (#10202)
* WIP: Updating Microsoft.AzureData * Minor changes * Adding new SystemData property to examples * Fixed formatting * Update azuredata.json Fixed systemData. * Update azuredata.json Fixed identitytype case. * Fixed formatting * Removing changes from this PR (suggested by ARM). Will send a different PR to rename properties.
1 parent f86892f commit 942f455

21 files changed

+306
-0
lines changed

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/azuredata.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,10 @@
20192019
"create"
20202020
],
20212021
"description": "The geo-location where the resource lives"
2022+
},
2023+
"systemData": {
2024+
"$ref": "#/definitions/SystemData",
2025+
"readOnly": true
20222026
}
20232027
},
20242028
"required": [
@@ -2218,6 +2222,52 @@
22182222
}
22192223
}
22202224
},
2225+
"SystemData": {
2226+
"description": "Read only system data",
2227+
"type": "object",
2228+
"properties": {
2229+
"createdBy": {
2230+
"type": "string",
2231+
"description": "An identifier for the identity that created the resource"
2232+
},
2233+
"createdByType": {
2234+
"$ref": "#/definitions/IdentityType",
2235+
"description": "The type of identity that created the resource"
2236+
},
2237+
"createdAt": {
2238+
"type": "string",
2239+
"format": "date-time",
2240+
"description": "The timestamp of resource creation (UTC)"
2241+
},
2242+
"lastModifiedBy": {
2243+
"type": "string",
2244+
"description": "An identifier for the identity that last modified the resource"
2245+
},
2246+
"lastModifiedByType": {
2247+
"$ref": "#/definitions/IdentityType",
2248+
"description": "The type of identity that last modified the resource"
2249+
},
2250+
"lastModifiedAt": {
2251+
"type": "string",
2252+
"format": "date-time",
2253+
"description": "The timestamp of resource last modification (UTC)"
2254+
}
2255+
}
2256+
},
2257+
"IdentityType": {
2258+
"description": "The type of identity that creates/modifies resources",
2259+
"type": "string",
2260+
"enum": [
2261+
"user",
2262+
"application",
2263+
"managedIdentity",
2264+
"key"
2265+
],
2266+
"x-ms-enum": {
2267+
"name": "IdentityType",
2268+
"modelAsString": true
2269+
}
2270+
},
22212271
"ResourceSku": {
22222272
"type": "object",
22232273
"properties": {

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateDataController.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
"200": {
1717
"body": {
1818
"properties": {},
19+
"systemData": {
20+
"createdBy": "user1",
21+
"createdByType": "user",
22+
"createdAt": "2020-01-01T17:18:19.1234567Z",
23+
"lastModifiedBy": "user2",
24+
"lastModifiedByType": "user",
25+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
26+
},
1927
"location": "northeurope",
2028
"tags": {
2129
"mytag": "myval"
@@ -29,6 +37,14 @@
2937
"body": {
3038
"properties": {},
3139
"location": "northeurope",
40+
"systemData": {
41+
"createdBy": "user1",
42+
"createdByType": "user",
43+
"createdAt": "2020-01-01T17:18:19.1234567Z",
44+
"lastModifiedBy": "user2",
45+
"lastModifiedByType": "user",
46+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
47+
},
3248
"tags": {
3349
"mytag": "myval"
3450
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdatePostgresInstance.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
"body": {
1818
"properties": {},
1919
"location": "northeurope",
20+
"systemData": {
21+
"createdBy": "user1",
22+
"createdByType": "user",
23+
"createdAt": "2020-01-01T17:18:19.1234567Z",
24+
"lastModifiedBy": "user2",
25+
"lastModifiedByType": "user",
26+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
27+
},
2028
"tags": {
2129
"mytag": "myval"
2230
},
@@ -29,6 +37,14 @@
2937
"body": {
3038
"properties": {},
3139
"location": "northeurope",
40+
"systemData": {
41+
"createdBy": "user1",
42+
"createdByType": "user",
43+
"createdAt": "2020-01-01T17:18:19.1234567Z",
44+
"lastModifiedBy": "user2",
45+
"lastModifiedByType": "user",
46+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
47+
},
3248
"tags": {
3349
"mytag": "myval"
3450
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlManagedInstance.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
"body": {
1818
"properties": {},
1919
"location": "northeurope",
20+
"systemData": {
21+
"createdBy": "user1",
22+
"createdByType": "user",
23+
"createdAt": "2020-01-01T17:18:19.1234567Z",
24+
"lastModifiedBy": "user2",
25+
"lastModifiedByType": "user",
26+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
27+
},
2028
"tags": {
2129
"mytag": "myval"
2230
},
@@ -29,6 +37,14 @@
2937
"body": {
3038
"properties": {},
3139
"location": "northeurope",
40+
"systemData": {
41+
"createdBy": "user1",
42+
"createdByType": "user",
43+
"createdAt": "2020-01-01T17:18:19.1234567Z",
44+
"lastModifiedBy": "user2",
45+
"lastModifiedByType": "user",
46+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
47+
},
3248
"tags": {
3349
"mytag": "myval"
3450
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerInstance.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"status": "Connected"
3232
},
3333
"location": "northeurope",
34+
"systemData": {
35+
"createdBy": "user1",
36+
"createdByType": "user",
37+
"createdAt": "2020-01-01T17:18:19.1234567Z",
38+
"lastModifiedBy": "user2",
39+
"lastModifiedByType": "user",
40+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
41+
},
3442
"tags": {
3543
"mytag": "myval"
3644
},
@@ -51,6 +59,14 @@
5159
"status": "Connected"
5260
},
5361
"location": "northeurope",
62+
"systemData": {
63+
"createdBy": "user1",
64+
"createdByType": "user",
65+
"createdAt": "2020-01-01T17:18:19.1234567Z",
66+
"lastModifiedBy": "user2",
67+
"lastModifiedByType": "user",
68+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
69+
},
5470
"tags": {
5571
"mytag": "myval"
5672
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetDataController.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"body": {
1111
"properties": {},
1212
"location": "northeurope",
13+
"systemData": {
14+
"createdBy": "user1",
15+
"createdByType": "user",
16+
"createdAt": "2020-01-01T17:18:19.1234567Z",
17+
"lastModifiedBy": "user2",
18+
"lastModifiedByType": "user",
19+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
20+
},
1321
"tags": {
1422
"mytag": "myval"
1523
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetPostgresInstance.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"body": {
1111
"properties": {},
1212
"location": "northeurope",
13+
"systemData": {
14+
"createdBy": "user1",
15+
"createdByType": "user",
16+
"createdAt": "2020-01-01T17:18:19.1234567Z",
17+
"lastModifiedBy": "user2",
18+
"lastModifiedByType": "user",
19+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
20+
},
1321
"tags": {
1422
"mytag": "myval"
1523
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlManagedInstance.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"body": {
1111
"properties": {},
1212
"location": "northeurope",
13+
"systemData": {
14+
"createdBy": "user1",
15+
"createdByType": "user",
16+
"createdAt": "2020-01-01T17:18:19.1234567Z",
17+
"lastModifiedBy": "user2",
18+
"lastModifiedByType": "user",
19+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
20+
},
1321
"tags": {
1422
"mytag": "myval"
1523
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServerInstance.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
"status": "Connected"
1919
},
2020
"location": "northeurope",
21+
"systemData": {
22+
"createdBy": "user1",
23+
"createdByType": "user",
24+
"createdAt": "2020-01-01T17:18:19.1234567Z",
25+
"lastModifiedBy": "user2",
26+
"lastModifiedByType": "user",
27+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
28+
},
2129
"tags": {
2230
"mytag": "myval"
2331
},

specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupDataController.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
{
1212
"properties": {},
1313
"location": "northeurope",
14+
"systemData": {
15+
"createdBy": "user1",
16+
"createdByType": "user",
17+
"createdAt": "2020-01-01T17:18:19.1234567Z",
18+
"lastModifiedBy": "user2",
19+
"lastModifiedByType": "user",
20+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
21+
},
1422
"tags": {
1523
"mytag": "myval"
1624
},
@@ -21,6 +29,14 @@
2129
{
2230
"properties": {},
2331
"location": "northeurope",
32+
"systemData": {
33+
"createdBy": "user1",
34+
"createdByType": "user",
35+
"createdAt": "2020-01-01T17:18:19.1234567Z",
36+
"lastModifiedBy": "user2",
37+
"lastModifiedByType": "user",
38+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
39+
},
2440
"tags": {
2541
"mytag": "myval"
2642
},

0 commit comments

Comments
 (0)