blob: 45192a167eb8e8c0a160fdb16edb7c403024b2bd (
plain)
1
2
3
4
5
6
7
8
|
class CheckGCPProjectBillingService
def execute(token)
client = GoogleApi::CloudPlatform::Client.new(token, nil)
client.projects_list.any? do |project|
client.projects_get_billing_info(project.name).billingEnabled
end
end
end
|