UNPKG

@cloud-carbon-footprint/gcp

Version:

The core logic to get cloud usage data and estimate energy and carbon emissions from Google Cloud Platform.

10 lines (9 loc) 478 B
import { google } from '@google-cloud/compute/build/protos/protos'; import InstancesScopedList = google.cloud.compute.v1.IInstancesScopedList; import DisksScopedList = google.cloud.compute.v1.IDisksScopedList; import AddressesScopedList = google.cloud.compute.v1.AddressesScopedList; export declare type IterableScopedList = AsyncIterable<ScopedListResult>; export declare type ScopedListResult = [ string, InstancesScopedList | DisksScopedList | AddressesScopedList ];