in pkg/sdk/client/client.go [54:68]
func NewAPIClient(cfg *Configuration) *APIClient {
if cfg.HTTPClient == nil {
cfg.HTTPClient = http.DefaultClient
}
c := &APIClient{}
c.cfg = cfg
c.common.client = c
// API Services
c.CarbonAwareApi = (*CarbonAwareApiService)(&c.common)
c.LocationsApi = (*LocationsApiService)(&c.common)
return c
}