69 lines
1.3 KiB
JSON
69 lines
1.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "PluginShareUpdateTargetsResponse",
|
|
"type": "object",
|
|
"required": [
|
|
"discoverability",
|
|
"principals"
|
|
],
|
|
"properties": {
|
|
"discoverability": {
|
|
"$ref": "#/definitions/PluginShareDiscoverability"
|
|
},
|
|
"principals": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PluginSharePrincipal"
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"PluginShareDiscoverability": {
|
|
"type": "string",
|
|
"enum": [
|
|
"LISTED",
|
|
"UNLISTED",
|
|
"PRIVATE"
|
|
]
|
|
},
|
|
"PluginSharePrincipal": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"principalId",
|
|
"principalType",
|
|
"role"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"principalId": {
|
|
"type": "string"
|
|
},
|
|
"principalType": {
|
|
"$ref": "#/definitions/PluginSharePrincipalType"
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/PluginSharePrincipalRole"
|
|
}
|
|
}
|
|
},
|
|
"PluginSharePrincipalRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"reader",
|
|
"editor",
|
|
"owner"
|
|
]
|
|
},
|
|
"PluginSharePrincipalType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"user",
|
|
"group",
|
|
"workspace"
|
|
]
|
|
}
|
|
}
|
|
} |