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
+37
View File
@@ -0,0 +1,37 @@
#pragma once
// Secret Manager v1: secrets and versions (global resources; regional secrets
// via ApiService::invoke("secretmanager.projects.locations....")). Reading a
// payload is access_version(); listing and metadata never return payloads.
#include <string>
#include "google/data/project_service.h"
namespace molo::google::data {
class SecretManager : public ProjectService {
public:
explicit SecretManager(std::shared_ptr<GoogleClient> client, CloudContext context)
: ProjectService(std::move(client), Api::kSecretManager, std::move(context)) {}
std::string secret_name(const std::string& secret) const;
// version: "latest" or a positive number.
std::string version_name(const std::string& secret, const std::string& version) const;
clients::body::Json list_secrets(int page_size, const std::string& filter) const;
clients::body::Json get_secret(const std::string& secret) const;
clients::body::Json list_versions(const std::string& secret, int page_size) const;
clients::body::Json get_version(const std::string& secret, const std::string& version) const;
// Returns the payload (base64 in payload.data). Sensitive: callers must not log it.
clients::body::Json access_version(const std::string& secret, const std::string& version) const;
// Writes (explicit).
clients::body::Json create_secret(const std::string& secret) const; // automatic replication
clients::body::Json add_version(const std::string& secret, const std::string& payload) const;
clients::body::Json disable_version(const std::string& secret, const std::string& version) const;
clients::body::Json destroy_version(const std::string& secret, const std::string& version) const;
clients::body::Json delete_secret(const std::string& secret) const;
};
} // namespace molo::google::data