datacenter.go
func (c *Client) WaitTillProvisioned(path string) error {
	waitCount := 300
	for i := 0; i < waitCount; i++ {
		request, err := c.GetRequestStatus(path)
		if err != nil {
			return err
		}
		if request.Metadata.Status == "DONE" {
			return nil
		}
		time.Sleep(1 * time.Second)
		i++
	}
	return fmt.Errorf("timeout expired while waiting for request to complete")
}
func (c *Client) WaitTillProvisioned(path string) error {
	waitCount := 300
	for i := 0; i < waitCount; i++ {
		request, err := c.GetRequestStatus(path)
		if err != nil {
			return err
		}
		if request.Metadata.Status == "DONE" {
			return nil
		}
		time.Sleep(1 * time.Second)
		i++
	}
	return fmt.Errorf("timeout expired while waiting for request to complete")
}
//WaitTillProvisioned helper function