Skip to content

Commit

Permalink
Merge pull request #157 from GoogleCloudPlatform/friction-log-fixes
Browse files Browse the repository at this point in the history
fix: added cloud billing as a service.
  • Loading branch information
tpryan authored Mar 13, 2023
2 parents cf04a58 + e194192 commit e40e320
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions gcloud/serviceusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,23 @@ type Service int64
const (
// Compute is the service name for enabling Compute Engine
Compute Service = iota + 1
// CloudBilling is the service name for enabling CloudBilling
CloudBilling
// CloudBuild is the service name for enabling Cloud Build
CloudBuild
// CloudFunctions is the service name for enabling Cloud Functions
CloudFunctions
// CloudResourceManager is the service name for enabling
// CloudResourceManager this is ultimately about manipulating projects
CloudResourceManager
// CloudBuild is the service name for enabling Cloud Build
CloudBuild
// CloudScheduler is the service name for enabling Cloud Scheduler
CloudScheduler
// Domains is the service name for enabling Cloud Domains
Domains
// CloudFunctions is the service name for enabling Cloud Functions
CloudFunctions
// Run is the service name for enabling Cloud Run
Run
// IAM is the service name for enabling Cloud IAM
IAM
// Run is the service name for enabling Cloud Run
Run
// SecretManager is the service name for enabling Cloud Secret Manager
SecretManager
// Storage is the service name for enabling Cloud Storage
Expand All @@ -55,26 +57,28 @@ func (s Service) String() string {
apistring := "googleapis.com"
svc := ""
switch s {
case Compute:
svc = "compute"
case CloudResourceManager:
svc = "cloudresourcemanager"
case CloudBilling:
svc = "cloudbilling"
case CloudBuild:
svc = "cloudbuild"
case Domains:
svc = "domains"
case CloudFunctions:
svc = "cloudfunctions"
case Run:
svc = "run"
case CloudResourceManager:
svc = "cloudresourcemanager"
case CloudScheduler:
svc = "cloudscheduler"
case Compute:
svc = "compute"
case Domains:
svc = "domains"
case IAM:
svc = "iam"
case Run:
svc = "run"
case SecretManager:
svc = "secretmanager"
case Storage:
svc = "storage"
case CloudScheduler:
svc = "cloudscheduler"
case Vault:
svc = "vault"
default:
Expand Down

0 comments on commit e40e320

Please sign in to comment.