func (client *Client) Info() (APIInformation, Warnings, error) {
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.GetInfoRequest,
	})
	if err != nil {
		return APIInformation{}, nil, err
	}
	var info APIInformation
	response := cloudcontroller.Response{
		Result: &info,
	}
	err = client.connection.Make(request, &response)
	if unknownSourceErr, ok := err.(ccerror.UnknownHTTPSourceError); ok && unknownSourceErr.StatusCode == http.StatusNotFound {
		return APIInformation{}, nil, ccerror.APINotFoundError{URL: client.cloudControllerURL}
	}
	return info, response.Warnings, err
}
Info returns back endpoint and API information from /v2/info.
package ccv2
import (
	"net/http"
	"code.cloudfoundry.org/cli/api/cloudcontroller"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/internal"
)
type APIInformation struct {
	APIVersion                   string `json:"api_version"`
	AuthorizationEndpoint        string `json:"authorization_endpoint"`
	DopplerEndpoint              string `json:"doppler_logging_endpoint"`
	MinCLIVersion                string `json:"min_cli_version"`
	MinimumRecommendedCLIVersion string `json:"min_recommended_cli_version"`
	Name                         string `json:"name"`
	RoutingEndpoint              string `json:"routing_endpoint"`
	TokenEndpoint                string `json:"token_endpoint"`
}
func (client *Client) API() string {
	return client.cloudControllerURL
}
func (client *Client) APIVersion() string {
	return client.cloudControllerAPIVersion
}
func (client *Client) AuthorizationEndpoint() string {
	return client.authorizationEndpoint
}
func (client *Client) DopplerEndpoint() string {
	return client.dopplerEndpoint
}
func (client *Client) MinCLIVersion() string {
	return client.minCLIVersion
}
func (client *Client) RoutingEndpoint() string {
	return client.routingEndpoint
}
func (client *Client) TokenEndpoint() string {
	return client.tokenEndpoint
}