code: func getClient(ctx context.Context, client *http.Client, server string) (*MachineProvider, error) {
  	mp, err := machine.New(client)
  	if err != nil {
  		return nil, err
  	}
  	mp.BasePath = server + "/_ah/api/machine/v1/"
  	return &MachineProvider{client: mp}, nil
  }
docs: // getClient returns a new instance of the MachineProvider client.