Definitions for @turbot/gcp-run
run
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "$ref": "#/definitions/runName" }, "state": { "$ref": "gcp#/definitions/state" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/runAka" } }, "title": { "const": "run" }, "custom": { "type": "object", "properties": { "gcp": { "$ref": "gcp#/definitions/gcpMetadata" } } } } } }, "required": [ "name", "turbot" ], "additionalProperties": true, "tests": [ { "description": "Valid - base test", "input": { "name": "projects/932405488407/services/run.googleapis.com", "turbot": { "akas": [ "gcp://serviceusage.googleapis.com/projects/932405488407/services/run.googleapis.com" ], "title": "Run", "custom": { "gcp": { "projectId": "cse-legolas-2" } } } } }, { "description": "Invalid - service provider name prefixed", "input": { "name": "GCP Run", "turbot": { "akas": [ "gcp://serviceusage.googleapis.com/projects/932405488407/services/run.googleapis.com" ], "title": "Run", "custom": { "gcp": { "projectId": "cse-legolas-2" } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/run", "modUri": "tmod:@turbot/gcp-run" }}
runAka
{ "type": "string", "pattern": "^gcp://serviceusage.googleapis.com/projects/[0-9]{12}/services/run.googleapis.com", "tests": [ { "description": "base", "input": "gcp://serviceusage.googleapis.com/projects/932405488407/services/run.googleapis.com" }, { "description": "invalid aka", "input": "gcp://serviceusage.googleapis.com/projects/cse-legolas-2/services/run.googleapis.com", "expected": false }, { "description": "invalid aka", "input": "aws://serviceusage.googleapis.com/projects/cse-legolas-2/services/run.googleapis.com", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/runAka", "modUri": "tmod:@turbot/gcp-run" }}
runName
{ "type": "string", "pattern": "^projects/[0-9]{12}/services/run.googleapis.com", "tests": [ { "description": "base", "input": "projects/932405488407/services/run.googleapis.com" }, { "description": "invalid aka", "input": "gcp://serviceusage.googleapis.com/projects/cse-legolas-2/services/run.googleapis.com", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/runName", "modUri": "tmod:@turbot/gcp-run" }}
service
{ "type": "object", "properties": { "name": { "$ref": "#/definitions/serviceName" }, "description": { "type": "string" }, "uid": { "type": "string" }, "generation": { "type": "string" }, "labels": { "type": "object" }, "annotations": { "type": "object" }, "createTime": { "$ref": "turbot#/definitions/isoTimestamp" }, "updateTime": { "$ref": "turbot#/definitions/isoTimestamp" }, "deleteTime": { "$ref": "turbot#/definitions/isoTimestamp" }, "expireTime": { "$ref": "turbot#/definitions/isoTimestamp" }, "creator": { "type": "string" }, "lastModifier": { "type": "string" }, "client": { "type": "string" }, "clientVersion": { "type": "string" }, "ingress": { "$ref": "#/definitions/serviceIngress" }, "launchStage": { "$ref": "#/definitions/serviceLaunchStage" }, "binaryAuthorization": { "type": "object" }, "template": { "type": "object" }, "traffic": { "type": "array" }, "observedGeneration": { "type": "string" }, "terminalCondition": { "type": "object" }, "conditions": { "type": "array" }, "latestReadyRevision": { "type": "string" }, "latestCreatedRevision": { "type": "string" }, "trafficStatuses": { "type": "array" }, "uri": { "type": "string" }, "reconciling": { "type": "boolean" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/serviceAka" } }, "tags": { "$ref": "gcp#/definitions/labels" }, "title": { "type": "string" }, "custom": { "type": "object", "properties": { "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" }, "gcp": { "$ref": "gcp#/definitions/gcpMetadata" } } } } } }, "additionalProperties": true, ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/service", "modUri": "tmod:@turbot/gcp-run" }}
serviceAka
{ "type": "string", "pattern": "^gcp://run.googleapis.com/projects/[a-z0-9-]{5,29}[a-z0-9]{1}/locations/[a-z0-9-]+/services/([a-z][a-z0-9-]{0,48})$", "tests": [ { "description": "base case", "input": "gcp://run.googleapis.com/projects/parker-aaa/locations/us-central1/services/working" }, { "description": "invalid aka", "input": "gcp://www.googleapis.com/projects/parker-aaa/locations/us-central1/services/working-line", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/serviceAka", "modUri": "tmod:@turbot/gcp-run" }}
serviceIngress
{ "type": "string", "enum": [ "INGRESS_TRAFFIC_ALL", "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER", "INGRESS_TRAFFIC_INTERNAL_ONLY", "INGRESS_TRAFFIC_UNSPECIFIED" ], "tests": [ { "description": "valid - correct state type", "input": "INGRESS_TRAFFIC_ALL" }, { "description": "invalid - empty string", "input": "", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/serviceIngress", "modUri": "tmod:@turbot/gcp-run" }}
serviceLaunchStage
{ "type": "string", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", "UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED" ], "tests": [ { "description": "valid - correct state type", "input": "GA" }, { "description": "invalid - empty string", "input": "", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/serviceLaunchStage", "modUri": "tmod:@turbot/gcp-run" }}
serviceName
{ "type": "string", "pattern": "^projects/[a-z0-9-]{5,29}[a-z0-9]{1}/locations/[a-z0-9-]+/services/([a-z][a-z0-9-]{0,48})$", "tests": [ { "description": "base case", "input": "projects/project-aaa/locations/us-central1/services/hello-world" }, { "description": "invalid characters", "input": "test*service", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-run#/definitions/serviceName", "modUri": "tmod:@turbot/gcp-run" }}