Definitions for @turbot/gcp-notebooks

notebooks

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/notebooksName"
},
"state": {
"$ref": "gcp#/definitions/state"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/notebooksAka"
}
},
"title": {
"type": "string"
},
"custom": {
"type": "object",
"properties": {
"gcp": {
"$ref": "gcp#/definitions/gcpMetadata"
}
}
}
}
}
},
"tests": [
{
"description": "Valid - base test",
"input": {
"name": "projects/123456789012/services/notebooks.googleapis.com",
"turbot": {
"akas": [
"gcp://serviceusage.googleapis.com/projects/123456789012/services/notebooks.googleapis.com"
],
"title": "Notebooks",
"custom": {
"gcp": {
"projectId": "cse-legolas-2"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-notebooks#/definitions/notebooks",
"modUri": "tmod:@turbot/gcp-notebooks"
}
}

notebooksAka

{
"type": "string",
"pattern": "^gcp://serviceusage.googleapis.com/projects/[0-9]{12}/services/notebooks.googleapis.com",
"tests": [
{
"description": "Base",
"input": "gcp://serviceusage.googleapis.com/projects/123456789012/services/notebooks.googleapis.com"
},
{
"description": "Invalid - aka",
"input": "gcp://serviceusage.googleapis.com/projectss/cse-legolas-2/services/notebooks.googleapis.com",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-notebooks#/definitions/notebooksAka",
"modUri": "tmod:@turbot/gcp-notebooks"
}
}

notebooksName

{
"type": "string",
"pattern": "^projects/[0-9]{1,12}/services/notebooks.googleapis.com$",
"tests": [
{
"description": "Base",
"input": "projects/123456789012/services/notebooks.googleapis.com"
},
{
"description": "Invalid - notebooks name",
"input": "gcp://serviceusage.googleapis.com/projects/cse-legolas-2/services/notebookszz.googleapis.com",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/gcp-notebooks#/definitions/notebooksName",
"modUri": "tmod:@turbot/gcp-notebooks"
}
}