Methods summary
public
|
#
__construct( OpenCloud\Common\Service\ServiceInterface $service, string $object = null )
constructs a new AsyncResponse object from a JSON string
constructs a new AsyncResponse object from a JSON string
Parameters
- $service
- the calling service
- $object
- $json the json response from the initial request
Overrides
|
public
string
|
#
getUrl( null $path = null, array $query = array() )
URL for status
We always show details
Parameters
- $path
- URI path to add on
- $query
- Query to add on
Returns
string string
Overrides
|
public
string
|
#
name( )
returns the Name of the request (the job ID)
returns the Name of the request (the job ID)
Returns
string string
Throws
NameError NameError
Overrides
|
public
Guzzle\Http\Message\Response
|
#
create( array $params = array() )
overrides for methods
Parameters
Returns
Guzzle\Http\Message\Response \Guzzle\Http\Message\Response
Overrides
|
public
Guzzle\Http\Message\Response
|
#
update( array $params = array() )
Update a resource
Parameters
Returns
Guzzle\Http\Message\Response \Guzzle\Http\Message\Response
Overrides
|
public
Guzzle\Http\Message\Response
|
#
delete( )
Delete this resource
Returns
Guzzle\Http\Message\Response \Guzzle\Http\Message\Response
Overrides
|
public
string
|
#
primaryKeyField( )
Returns the primary key field for the object
Returns the primary key field for the object
Returns
string string
Overrides
|
public
|
#
waitFor( null $state = null, null $timeout = null, null $callback = null, null $interval = null )
A method to repeatedly poll the API resource, waiting for an eventual state
change
A method to repeatedly poll the API resource, waiting for an eventual state
change
Parameters
- $state
- The expected state of the resource
- $timeout
- The maximum timeout to wait
- $callback
- The callback to use to check the state
- $interval
- How long between each refresh request
Overrides
|