abstract class VMware_VCloud_SDK_Service_Abstract
| null |
setHttpClient(VMware_VCloud_SDK_Http_Client $httpClient)
Set the HTTP client object to use for retrieving the feeds. |
|
| VMware_VCloud_SDK_Http_Client |
getHttpClient()
Gets the HTTP client object. |
|
| String |
getToken()
Gets the vcloud token |
|
|
setToken(string $vcloudToken)
Sets the vcloud token |
||
| mixed |
get(string $url, string $type = '', boolean $reObj = true, string $return = null)
Sets HTTP configuration |
|
| mixed |
post(string $url, int $expect = null, string $type = null, mixed $data = null, string $return = null, string $auth = null)
Send an HTTP POST request. |
|
| mixed |
put(string $url, int $expect = null, string $type = null, mixed $data = null)
Send an HTTP PUT request. |
|
| VMware_VCloud_API_TaskType|null |
delete(string $url, int $expect = null)
Send an HTTP DELETE request. |
|
| mixed |
refetch(mixed $obj)
Refetch the given VMware vCloud data object from vCloud. |
|
| null |
download(string $url, string $dest, string $type = 'application/octet-stream')
Download a file and dump to specified location. |
|
| null |
upload(string $url, string $file, string $type = 'application/octet-stream', function $onProgress = false)
Upload a file. |
final public null
setHttpClient(VMware_VCloud_SDK_Http_Client $httpClient)
Set the HTTP client object to use for retrieving the feeds.
If null, use the default client, the VMwareVCloudSDKHttpClient object.
final public VMware_VCloud_SDK_Http_Client
getHttpClient()
Gets the HTTP client object.
final public String
getToken()
Gets the vcloud token
final public
setToken(string $vcloudToken)
Sets the vcloud token
public mixed
get(string $url, string $type = '', boolean $reObj = true, string $return = null)
Sets HTTP configuration
public mixed
post(string $url, int $expect = null, string $type = null, mixed $data = null, string $return = null, string $auth = null)
Send an HTTP POST request.
public mixed
put(string $url, int $expect = null, string $type = null, mixed $data = null)
Send an HTTP PUT request.
public VMware_VCloud_API_TaskType|null
delete(string $url, int $expect = null)
Send an HTTP DELETE request.
public mixed
refetch(mixed $obj)
Refetch the given VMware vCloud data object from vCloud.
public null
download(string $url, string $dest, string $type = 'application/octet-stream')
Download a file and dump to specified location.
public null
upload(string $url, string $file, string $type = 'application/octet-stream', function $onProgress = false)
Upload a file.