Overview

Namespaces

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

Classes

  • AsyncResponse
  • Domain
  • Object
  • PtrRecord
  • Record
  • Subdomain
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class AsyncResponse

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

OpenCloud\Common\Base
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\AbstractService $service, string $object = null )

constructs a new AsyncResponse object from a JSON string

constructs a new AsyncResponse object from a JSON string

Parameters

$service
OpenCloud\Service
$service the calling service
$object
string
$json the json response from the initial request

Overrides

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

URL for status

URL for status

We always show details

Returns

string

Throws

UrlError

Overrides

OpenCloud\Common\PersistentObject::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
if attribute 'name' is not defined

Overrides

OpenCloud\Common\PersistentObject::name()
public HttpResponse
# create( array $params = array() )

overrides for methods

overrides for methods

Parameters

$params
array
$params array of values to set when creating the object

Returns

HttpResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::create()
public HttpResponse
# update( array $params = array() )

Updates an existing object

Updates an existing object

Parameters

$params
array
$params array of values to set when updating the object

Returns

HttpResponse

Throws

VolumeCreateError
if HTTP status is not Success

Api

Overrides

OpenCloud\Common\PersistentObject::update()
public HttpResponse
# delete( )

Deletes an object

Deletes an object

Returns

HttpResponse

Throws

DeleteError
if HTTP status is not Success

Api

Overrides

OpenCloud\Common\PersistentObject::delete()
public string
# primaryKeyField( )

Returns the primary key field for the object

Returns the primary key field for the object

The primary key is usually 'id', but this function is provided so that (in rare cases where it is not 'id'), it can be overridden.

Returns

string

Overrides

OpenCloud\Common\PersistentObject::primaryKeyField()
Methods inherited from OpenCloud\Common\PersistentObject
action(), checkExtension(), createJson(), createUrl(), findLink(), getClient(), getMetadata(), getParent(), getService(), id(), jsonCollectionElement(), jsonCollectionName(), jsonName(), noCreate(), noDelete(), noUpdate(), parseResponse(), refresh(), refreshFromLocationUrl(), region(), resourceName(), setMetadata(), setParent(), setService(), status(), updateJson(), url(), waitFor()
Methods inherited from OpenCloud\Common\Base
__call(), checkJsonError(), generateUuid(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
Properties summary
public mixed $jobId
#
public mixed $callbackUrl
#
public mixed $status
#
public mixed $requestUrl
#
public mixed $verb
#
public mixed $request
#
public mixed $response
#
public mixed $error
#
public mixed $domains
#
protected static boolean $json_name false
#
Properties inherited from OpenCloud\Common\PersistentObject
$metadata
PHP OpenCloud API API documentation generated by ApiGen 2.8.0