func NewClient(user, pass, resource, authType string) (*Client, error) {
	return NewClientWithServerInfo(user, pass, resource, authType, defaultHost, defaultDomain, defaultConf)
}
func NewClient(user, pass, resource, authType string) (*Client, error) {
	return NewClientWithServerInfo(user, pass, resource, authType, defaultHost, defaultDomain, defaultConf)
}
// NewClient creates a new Client connection from the user name, password and
// resource passed to it. It uses default host URL and conf URL.