From 19ea4bbb9cde4f2eafa187da83fe8f8b97b7fd7f Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 25 Jun 2024 16:33:44 +0000 Subject: [PATCH] JSON file needs to be in both places. Weird. --- src/serviceaccountlookup-v1.json | 141 +++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 src/serviceaccountlookup-v1.json diff --git a/src/serviceaccountlookup-v1.json b/src/serviceaccountlookup-v1.json new file mode 100644 index 00000000..ef480ee3 --- /dev/null +++ b/src/serviceaccountlookup-v1.json @@ -0,0 +1,141 @@ +{ + "basePath": "", + "baseUrl": "https://www.googleapis.com/service_accounts/v1", + "canonicalName": "serviceaccountlookup", + "description": "Psuedo-API to lookup public certificates for a service account anonymously", + "discoveryVersion": "v1", + "documentationLink": "https://example.com/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "serviceaccountlookup:v1", + "kind": "discovery#restDescription", + "name": "serviceaccountlookup", + "ownerDomain": "google.com", + "ownerName": "Google", + "packagePath": "admin", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "serviceaccounts": { + "methods": { + "lookup": { + "description": "Lookup", + "flatPath": "metadata/x509/{account}", + "httpMethod": "GET", + "id": "serviceaccountslookup.lookup", + "parameterOrder": [ + "account" + ], + "parameters": { + "account": { + "description": "Email or ID of the service account.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "metadata/x509/{account}", + "response": { + "$ref": "Certificates" + } + } + } + } + }, + "rootUrl": "https://www.googleapis.com/service_accounts/v1", + "schemas": { + "Certificates": { + "description": "JSON template for certificates.", + "id": "Certificates", + "properties": { + "email": { "description": "Email of the delegate.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Service Account Lookup Psuedo-API", + "version": "v1", + "version_module": true +}