Definitions for @turbot/gcp-oauth
oauth
{ "type": "object", "properties": { "name": { "type": "string" }, "state": { "$ref": "gcp#/definitions/state" }, "parent": { "type": "string" }, "config": { "type": "object" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/oauthAka" } }, "title": { "type": "string" }, "custom": { "type": "object", "properties": { "gcp": { "$ref": "gcp#/definitions/gcpMetadata" } } } } } }, "tests": [ { "description": "Valid - base test", "input": { "name": "projects/979620418102/services/clientauthconfig.googleapis.com", "turbot": { "akas": [ "gcp://serviceusage.googleapis.com/projects/979620418102/services/clientauthconfig.googleapis.com" ], "title": "OAuth API", "custom": { "gcp": { "projectId": 979620418102 } } } } } ], ".turbot": { "uri": "tmod:@turbot/gcp-oauth#/definitions/oauth", "modUri": "tmod:@turbot/gcp-oauth" }}
oauthAka
{ "type": "string", "pattern": "^gcp://serviceusage.googleapis.com/projects/[0-9]{12}/services/clientauthconfig.googleapis.com$", "tests": [ { "descritpion": "base case", "input": "gcp://serviceusage.googleapis.com/projects/979620418102/services/clientauthconfig.googleapis.com" }, { "description": "invalid - service name is in correct", "input": "gcp://serviceusage.googleapis.com/projects/979620418102/services/clientauthconfigh.googleapis.com", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/gcp-oauth#/definitions/oauthAka", "modUri": "tmod:@turbot/gcp-oauth" }}