Skip to content

Commit

Permalink
resolving sdk validation issue. Create own version of systemData. Wil…
Browse files Browse the repository at this point in the history
…l switch to v2/type.json in next PR
  • Loading branch information
Huinan Liu committed Dec 9, 2020
1 parent ec74713 commit 30f5c3c
Showing 1 changed file with 55 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -981,13 +981,13 @@
"$ref": "#/definitions/AssetProperties"
},
"systemData": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"$ref": "#/definitions/systemData",
"description": "The system data."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
"$ref": "#/definitions/Resource"
}
],
"description": "Asset including virtual machines and the on-prem test devices."
Expand Down Expand Up @@ -1019,6 +1019,59 @@
}
},
"description": "A list of asset."
},
"systemData": {
"description": "Metadata pertaining to creation and last modification of the resource.",
"type": "object",
"readOnly": true,
"properties": {
"createdBy": {
"type": "string",
"description": "The identity that created the resource."
},
"createdByType": {
"type": "string",
"description": "The type of identity that created the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"x-ms-enum": {
"name": "createdByType",
"modelAsString": true
}
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp of resource creation (UTC)."
},
"lastModifiedBy": {
"type": "string",
"description": "The identity that last modified the resource."
},
"lastModifiedByType": {
"type": "string",
"description": "The type of identity that last modified the resource.",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
],
"x-ms-enum": {
"name": "createdByType",
"modelAsString": true
}
},
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The type of identity that last modified the resource."
}
}
}
},
"parameters": {
Expand Down

0 comments on commit 30f5c3c

Please sign in to comment.