// CreatePod creates a pod and returns the pod ID.
CreatePod creates a pod and returns the pod ID.
// CreatePod creates a pod and returns the pod ID .
func (c *Client) CreatePod(spec *types.UserPod) (string, error) {
	ctx, cancel := getContextWithTimeout(hyperContextTimeout)
	defer cancel()
	resp, err := c.client.PodCreate(ctx, &types.PodCreateRequest{
		PodSpec: spec,
	})
	if err != nil {
		return "", err
	}
	return resp.PodID, nil
}
func ( c * Client ) CreatePod ( spec * types . UserPod ) ( string , error ) { ctx , cancel := getContextWithTimeout ( hyperContextTimeout ) defer cancel ( ) resp , err := c . client . PodCreate ( ctx , & types . PodCreateRequest { PodSpec : spec , } ) if err != nil { return " " , err } return resp . PodID , nil }
CreatePod creates a pod and returns the pod ID.
CreatePod creates a pod and returns the pod ID .