Skip to content

Commit

Permalink
POC: Adding systemdata definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Adithya Upadhya committed Nov 18, 2020
1 parent a1c4abb commit 68c8a1c
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
"readOnly": true
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData",
"$ref": "#/definitions/SystemData",
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"readOnly": true
Expand Down Expand Up @@ -912,6 +912,59 @@
}
}
}
},
"SystemData": {
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"properties": {
"createdBy": {
"description": "The identity that created the resource.",
"type": "string"
},
"createdByType": {
"description": "The type of identity that created the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"type": "string",
"x-ms-enum": {
"name": "createdByType",
"modelAsString": true
}
},
"createdAt": {
"format": "date-time",
"description": "The timestamp of resource creation (UTC).",
"type": "string"
},
"lastModifiedBy": {
"description": "The identity that last modified the resource.",
"type": "string"
},
"lastModifiedByType": {
"description": "The type of identity that last modified the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"type": "string",
"x-ms-enum": {
"name": "lastModifiedByType",
"modelAsString": true
}
},
"lastModifiedAt": {
"format": "date-time",
"description": "The timestamp of resource modification (UTC).",
"type": "string"
}
},
"readOnly": true
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2976,7 +2976,7 @@
}
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData",
"$ref": "#/definitions/SystemData",
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"readOnly": true
Expand All @@ -3003,14 +3003,67 @@
"readOnly": true
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData",
"$ref": "#/definitions/SystemData",
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"readOnly": true
}
},
"x-ms-azure-resource": true
},
"SystemData": {
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"properties": {
"createdBy": {
"description": "The identity that created the resource.",
"type": "string"
},
"createdByType": {
"description": "The type of identity that created the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"type": "string",
"x-ms-enum": {
"name": "createdByType",
"modelAsString": true
}
},
"createdAt": {
"format": "date-time",
"description": "The timestamp of resource creation (UTC).",
"type": "string"
},
"lastModifiedBy": {
"description": "The identity that last modified the resource.",
"type": "string"
},
"lastModifiedByType": {
"description": "The type of identity that last modified the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"type": "string",
"x-ms-enum": {
"name": "lastModifiedByType",
"modelAsString": true
}
},
"lastModifiedAt": {
"format": "date-time",
"description": "The timestamp of resource modification (UTC).",
"type": "string"
}
},
"readOnly": true
},
"ErrorResponseBody": {
"description": "An error response from the Azure Container Registry service.",
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@
"readOnly": true
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData",
"$ref": "#/definitions/SystemData",
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"readOnly": true
Expand Down Expand Up @@ -4006,13 +4006,66 @@
}
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData",
"$ref": "#/definitions/SystemData",
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"readOnly": true
}
},
"x-ms-azure-resource": true
},
"SystemData": {
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"properties": {
"createdBy": {
"description": "The identity that created the resource.",
"type": "string"
},
"createdByType": {
"description": "The type of identity that created the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"type": "string",
"x-ms-enum": {
"name": "createdByType",
"modelAsString": true
}
},
"createdAt": {
"format": "date-time",
"description": "The timestamp of resource creation (UTC).",
"type": "string"
},
"lastModifiedBy": {
"description": "The identity that last modified the resource.",
"type": "string"
},
"lastModifiedByType": {
"description": "The type of identity that last modified the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"type": "string",
"x-ms-enum": {
"name": "lastModifiedByType",
"modelAsString": true
}
},
"lastModifiedAt": {
"format": "date-time",
"description": "The timestamp of resource modification (UTC).",
"type": "string"
}
},
"readOnly": true
}
},
"parameters": {
Expand Down

0 comments on commit 68c8a1c

Please sign in to comment.