feat(clients): data: BigQuery, Storage media and signed URLs, Pub/Sub, Firestore, Spanner, Bigtable admin, Secret Manager, Dataplex, DLP, KMS, Datastore

Discovery generated call table (918 rows), typed services, /google/data demo.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 15:03:43 +01:00
co-authored by Claude Sonnet 5.5
parent 3db67fcf1f
commit 1af14b5d74
47 changed files with 6315 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
// Routes: GET /google/data/status and /google/data/calls
#include "support/GoogleRig.hpp"
using namespace molo::example::test;
int main() {
setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1);
GoogleRig off(false);
Fixture f(off.client);
auto res = f.client->get("/google/data/status");
check(res.status == 200, "status 200");
check(contains(res.body, "\"configured\":false"), "reports no credential");
check(contains(res.body, "\"project_set\":true"), "project read from env");
for (const char* api : {"bigquery", "storage", "pubsub", "firestore", "spanner", "bigtableadmin",
"secretmanager", "dataplex", "dlp", "cloudkms", "datastore"})
check(contains(res.body, std::string("\"name\":\"") + api + "\""), std::string("lists ") + api);
check(contains(res.body, "\"service\":\"bigquery.googleapis.com\""), "shows the service to enable");
check(contains(res.body, "\"max_signed_url_seconds\":604800"), "signed URL cap shown");
auto all = f.client->get("/google/data/calls?api=pubsub");
check(all.status == 200 && contains(all.body, "pubsub.projects.topics.publish"), "table lists publish");
check(!contains(all.body, "bigquery.jobs.query"), "api filter applies");
check(contains(f.client->get("/google/data/calls?api=storage").body, "storage.objects.compose"), "table lists compose");
GoogleRig on;
Fixture g(on.client);
check(contains(g.client->get("/google/data/status").body, "\"configured\":true"), "reports credential");
check(f.client->post("/google/data/status", "{}", "application/json").status == 405, "post is 405");
check(f.client->post("/google/data/calls", "{}", "application/json").status == 405, "calls post is 405");
check(on.mock->send_count() == 0, "no network");
return finish("google/data/status");
}