func NewClient(config Config) *Client {
	userAgent := fmt.Sprintf("%s/%s (%s; %s %s)", config.AppName, config.AppVersion, runtime.Version(), runtime.GOARCH, runtime.GOOS)
	return &Client{
		userAgent:          userAgent,
		jobPollingInterval: config.JobPollingInterval,
		jobPollingTimeout:  config.JobPollingTimeout,
		wrappers:           append([]ConnectionWrapper{newErrorWrapper()}, config.Wrappers...),
	}
}
NewClient returns a new Cloud Controller Client.
package ccv2
import (
	"fmt"
	"runtime"
	"time"
	"code.cloudfoundry.org/cli/api/cloudcontroller"
	"github.com/tedsuo/rata"
)
type Warnings []string
type Client struct {
	authorizationEndpoint     string
	cloudControllerAPIVersion string
	cloudControllerURL        string
	dopplerEndpoint           string
	minCLIVersion             string
	routingEndpoint           string
	tokenEndpoint             string
	jobPollingInterval time.Duration
	jobPollingTimeout  time.Duration
	connection cloudcontroller.Connection
	router     *rata.RequestGenerator
	userAgent  string
	wrappers   []ConnectionWrapper
}
type Config struct {
	AppName string
	AppVersion string
	JobPollingTimeout time.Duration
	JobPollingInterval time.Duration
	Wrappers []ConnectionWrapper
}