mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Add "hostRequirements" to schema (microsoft/vscode-remote-release#5144)
This commit is contained in:
parent
c74e4bd895
commit
e91439216e
|
@ -357,6 +357,28 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Codespaces-specific configuration."
|
"description": "Codespaces-specific configuration."
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Host hardware requirements.",
|
||||||
|
"properties": {
|
||||||
|
"cpus": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"description": "Number of required CPUs."
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -714,6 +736,28 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Codespaces-specific configuration."
|
"description": "Codespaces-specific configuration."
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Host hardware requirements.",
|
||||||
|
"properties": {
|
||||||
|
"cpus": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"description": "Number of required CPUs."
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -1047,6 +1091,28 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Codespaces-specific configuration."
|
"description": "Codespaces-specific configuration."
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Host hardware requirements.",
|
||||||
|
"properties": {
|
||||||
|
"cpus": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"description": "Number of required CPUs."
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -1346,6 +1412,28 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Codespaces-specific configuration."
|
"description": "Codespaces-specific configuration."
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Host hardware requirements.",
|
||||||
|
"properties": {
|
||||||
|
"cpus": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"description": "Number of required CPUs."
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -1614,6 +1702,28 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Codespaces-specific configuration."
|
"description": "Codespaces-specific configuration."
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Host hardware requirements.",
|
||||||
|
"properties": {
|
||||||
|
"cpus": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"description": "Number of required CPUs."
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
|
|
@ -256,6 +256,32 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Codespaces-specific configuration."
|
"description": "Codespaces-specific configuration."
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "Host hardware requirements.",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"cpus": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1,
|
||||||
|
"description": "Number of required CPUs."
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required RAM in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
},
|
||||||
|
"storage": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+([tgmk]b)?$",
|
||||||
|
"description": "Amount of required disk space in bytes. Supports units tb, gb, mb and kb."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue