feat(clients): ops: 20 Google Cloud operations APIs, 418 Discovery-derived calls

Compute, Cloud Run, Functions, GKE, Build, Artifact Registry, IAM, IAM
Credentials, Resource Manager, Service Usage, Logging, Monitoring, Scheduler,
Tasks, Workflows, Eventarc, Billing, Asset, Org Policy. Generated call table
checked against Discovery, validated plans, dry-run default for writes
(enable/disable never live), /google/ops demo routes, live read-only probe.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 15:23:56 +01:00
co-authored by Claude Sonnet 5.5
parent 3db67fcf1f
commit 18ec8b720e
46 changed files with 4702 additions and 3 deletions
+31
View File
@@ -0,0 +1,31 @@
#pragma once
// Recognises "the API is not enabled on this project" so callers can say so
// loudly instead of showing a bare 403. Enabling is a human decision: this
// class only reports.
#include <optional>
#include <string>
#include "google/errors.h"
namespace molo::google::ops {
struct DisabledApi {
std::string service; // e.g. iam.googleapis.com ("" when Google named none)
std::string activation_url; // console page where a human enables it
// "API NOT ENABLED: iam.googleapis.com, enable it at https://..."
std::string loud() const;
};
class ApiState {
public:
// Set when the error is Google's "has not been used in project ... or it is
// disabled" / SERVICE_DISABLED answer (HTTP 403).
static std::optional<DisabledApi> disabled(const GoogleError& error,
const std::string& project);
// "services/serviceusage.googleapis.com" style segment of the API host in a text.
static std::string service_in(const std::string& text);
};
} // namespace molo::google::ops