func (c *Fugue) SetTransport(transport runtime.ClientTransport) {
	c.Transport = transport
	c.AuditLog.SetTransport(transport)
	c.CustomRules.SetTransport(transport)
	c.Environments.SetTransport(transport)
	c.Events.SetTransport(transport)
	c.Families.SetTransport(transport)
	c.Groups.SetTransport(transport)
	c.Invites.SetTransport(transport)
	c.Metadata.SetTransport(transport)
	c.Notifications.SetTransport(transport)
	c.RuleWaivers.SetTransport(transport)
	c.Scans.SetTransport(transport)
	c.Users.SetTransport(transport)
}
SetTransport changes the transport on the client and all its subresources
package client
import (
	"github.com/go-openapi/runtime"
	httptransport "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/client/audit_log"
	"github.com/fugue/fugue-client/client/custom_rules"
	"github.com/fugue/fugue-client/client/environments"
	"github.com/fugue/fugue-client/client/events"
	"github.com/fugue/fugue-client/client/families"
	"github.com/fugue/fugue-client/client/groups"
	"github.com/fugue/fugue-client/client/invites"
	"github.com/fugue/fugue-client/client/metadata"
	"github.com/fugue/fugue-client/client/notifications"
	"github.com/fugue/fugue-client/client/rule_waivers"
	"github.com/fugue/fugue-client/client/scans"
	"github.com/fugue/fugue-client/client/users"
)
var Default = NewHTTPClient(nil)
const (
	DefaultHost string = "api.riskmanager.fugue.co"
	DefaultBasePath string = "/v0"
)
var DefaultSchemes = []string{"https"}
func NewHTTPClient(formats strfmt.Registry) *Fugue {
	return NewHTTPClientWithConfig(formats, nil)
}
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Fugue {
	if cfg == nil {
		cfg = DefaultTransportConfig()
	}
	transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
	return New(transport, formats)
}
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Fugue {
	if formats == nil {
		formats = strfmt.Default
	}
	cli := new(Fugue)
	cli.Transport = transport
	cli.AuditLog = audit_log.New(transport, formats)
	cli.CustomRules = custom_rules.New(transport, formats)
	cli.Environments = environments.New(transport, formats)
	cli.Events = events.New(transport, formats)
	cli.Families = families.New(transport, formats)
	cli.Groups = groups.New(transport, formats)
	cli.Invites = invites.New(transport, formats)
	cli.Metadata = metadata.New(transport, formats)
	cli.Notifications = notifications.New(transport, formats)
	cli.RuleWaivers = rule_waivers.New(transport, formats)
	cli.Scans = scans.New(transport, formats)
	cli.Users = users.New(transport, formats)
	return cli
}
func DefaultTransportConfig() *TransportConfig {
	return &TransportConfig{
		Host:     DefaultHost,
		BasePath: DefaultBasePath,
		Schemes:  DefaultSchemes,
	}
}
type TransportConfig struct {
	Host     string
	BasePath string
	Schemes  []string
}
func (cfg *TransportConfig) WithHost(host string) *TransportConfig {
	cfg.Host = host
	return cfg
}
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig {
	cfg.BasePath = basePath
	return cfg
}
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
	cfg.Schemes = schemes
	return cfg
}
type Fugue struct {
	AuditLog audit_log.ClientService
	CustomRules custom_rules.ClientService
	Environments environments.ClientService
	Events events.ClientService
	Families families.ClientService
	Groups groups.ClientService
	Invites invites.ClientService
	Metadata metadata.ClientService
	Notifications notifications.ClientService
	RuleWaivers rule_waivers.ClientService
	Scans scans.ClientService
	Users users.ClientService
	Transport runtime.ClientTransport
}