Class

# VMware_VCloud_SDK_Task

class VMware_VCloud_SDK_Task extends VMware_VCloud_SDK_Abstract

## Methods

string | getEntityId() Get vCloud ID of the vCloud resource entity from its data object. | from VMware_VCloud_SDK_Abstract
VMware_VCloud_API_TaskType | getTask() Get a VMware vCloud task entity. |
null | cancel() Cancel a task. |
boolean | isRunning() Check whether this task is running. |
VMware_VCloud_API_TaskType | wait(int $iteration = 15, int $interval = 20) Wait for a task to finish. |
VMware_VCloud_API_TaskType | update(VMware_VCloud_API_TaskType $task) Update a task. |

## Details

###
in VMware_VCloud_SDK_Abstract at line 85
`public string getEntityId()`

Get vCloud ID of the vCloud resource entity from its data object.

#### Return Value

string |

###
at line 10
`public VMware_VCloud_API_TaskType getTask()`

Get a VMware vCloud task entity.

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 21
`public null cancel()`

Cancel a task.

#### Return Value

null |

###
at line 36
`public boolean isRunning()`

Check whether this task is running.

#### Return Value

boolean |

###
at line 51
`public VMware_VCloud_API_TaskType wait(int $iteration = 15, int $interval = 20)`

Wait for a task to finish.

#### Parameters

int | $iteration | Wait loops
int | $interval | Wait interval in seconds

#### Return Value

VMware_VCloud_API_TaskType |

###
at line 64
`public VMware_VCloud_API_TaskType update(VMware_VCloud_API_TaskType $task)`

Update a task.

#### Parameters

VMware_VCloud_API_TaskType | $task |

#### Return Value

VMware_VCloud_API_TaskType |