Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

  • AbstractResource
  • AsyncResponse
  • Domain
  • PtrRecord
  • Record
  • Subdomain

Interfaces

  • HasPtrRecordsInterface

Class AsyncResponse

The AsyncResponse class encapsulates the data returned by a Cloud DNS asynchronous response.

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Common\Resource\PersistentResource
Extended by OpenCloud\Common\PersistentObject
Extended by OpenCloud\DNS\Resource\AsyncResponse
Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/AsyncResponse.php

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

OpenCloud\Common\Resource\BaseResource::__construct
public string
# getUrl( null $path = null, array $query = array() )

URL for status

URL for status

We always show details

Parameters

$path
URI path to add on
$query
Query to add on

Returns

string

Overrides

OpenCloud\Common\Resource\BaseResource::getUrl
public string
# name( )

returns the Name of the request (the job ID)

returns the Name of the request (the job ID)

Returns

string

Throws

NameError

Overrides

OpenCloud\Common\Resource\PersistentResource::name
public Guzzle\Http\Message\Response
# create( array $params = array() )

overrides for methods

overrides for methods

Parameters

$params

Returns

Guzzle\Http\Message\Response

Overrides

OpenCloud\Common\Resource\PersistentResource::create
public Guzzle\Http\Message\Response
# update( array $params = array() )

Update a resource

Update a resource

Parameters

$params

Returns

Guzzle\Http\Message\Response

Overrides

OpenCloud\Common\Resource\PersistentResource::update
public Guzzle\Http\Message\Response
# delete( )

Delete this resource

Delete this resource

Returns

Guzzle\Http\Message\Response

Overrides

OpenCloud\Common\Resource\PersistentResource::delete
public string
# primaryKeyField( )

Returns the primary key field for the object

Returns the primary key field for the object

Returns

string
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

OpenCloud\Common\Resource\PersistentResource::waitFor

Methods inherited from OpenCloud\Common\Resource\PersistentResource

checkExtension(), refresh(), refreshFromLocationUrl()

Methods inherited from OpenCloud\Common\Resource\BaseResource

findLink(), getClient(), getMetadata(), getParent(), getService(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), resourceName(), setMetadata(), setParent(), setService()

Methods inherited from OpenCloud\Common\Base

__call(), checkJsonError(), generateUuid(), getInstance(), getLogger(), hasLogger(), makeResourceIteratorOptions(), populate(), setLogger(), stripNamespace(), toCamel(), toUnderscores()

Magic methods summary

Constants summary

integer DEFAULT_INTERVAL
# 2

Properties summary

public $jobId
#
public $callbackUrl
#
public $status
#
public $requestUrl
#
public $verb
#
public $request
#
public $response
#
public $error
#
public $domains
#
API documentation generated by ApiGen