Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use the common type for SystemData #13723

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,52 @@
}
},
"x-ms-external": true
},
"SystemData": {
"description": "Metadata pertaining to creation and last modification of the key vault resource.",
"readOnly": true,
"properties": {
"createdBy": {
"type": "string",
"description": "The identity that created the key vault resource."
},
"createdByType": {
"description": "The type of identity that created the key vault resource.",
"$ref": "#/definitions/IdentityType"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp of the key vault resource creation (UTC)."
},
"lastModifiedBy": {
"type": "string",
"description": "The identity that last modified the key vault resource."
},
"lastModifiedByType": {
"description": "The type of identity that last modified the key vault resource.",
"$ref": "#/definitions/IdentityType"
},
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp of the key vault resource last modification (UTC)."
}
}
},
"IdentityType": {
"type": "string",
"description": "The type of identity.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"x-ms-enum": {
"name": "identityType",
"modelAsString": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down Expand Up @@ -151,6 +159,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down Expand Up @@ -80,6 +88,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down Expand Up @@ -150,6 +158,14 @@
"type": "Microsoft.KeyVault/vaults",
"location": "westus",
"tags": {},
"systemData": {
"createdBy": "keyVaultUser1",
"createdByType": "User",
"createdAt": "2020-01-01T12:00:00.0000000Z",
"lastModifiedBy": "keyVaultUser2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
},
"properties": {
"sku": {
"family": "A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,10 @@
},
"description": "Tags assigned to the key vault resource."
},
"systemData": {
"description": "System metadata for the key vault.",
"$ref": "common.json#/definitions/SystemData"
},
"properties": {
"$ref": "#/definitions/VaultProperties",
"description": "Properties of the vault"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@
"description": "Resource tags"
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData"
"$ref": "common.json#/definitions/SystemData"
}
},
"description": "Managed HSM resource",
Expand Down