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 Object

The DnsObject class is an extension of the PersistentObject class that permits the asynchronous responses used by Cloud DNS

OpenCloud\Common\Base
Extended by OpenCloud\Common\PersistentObject
Extended by OpenCloud\DNS\Resource\Object

Direct known subclasses

OpenCloud\DNS\Resource\Domain, OpenCloud\DNS\Resource\Record

Indirect known subclasses

OpenCloud\DNS\Resource\PtrRecord, OpenCloud\DNS\Resource\Subdomain
Abstract
Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/Object.php
Methods summary
public OpenCloud\DNS\Resource\AsyncResponse
# create( array $params = array() )

Create() returns an asynchronous response

Create() returns an asynchronous response

Parameters

$params
array
$params array of key/value pairs

Returns

OpenCloud\DNS\Resource\AsyncResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::create()
public OpenCloud\DNS\Resource\AsyncResponse
# update( array $params = array() )

Update() returns an asynchronous response

Update() returns an asynchronous response

Parameters

$params
array
$params array of key/value pairs

Returns

OpenCloud\DNS\Resource\AsyncResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::update()
public OpenCloud\DNS\Resource\AsyncResponse
# delete( )

Delete() returns an asynchronous response

Delete() returns an asynchronous response

Returns

OpenCloud\DNS\Resource\AsyncResponse

Throws

DeleteError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::delete()
protected stdClass
# createJson( )

creates the JSON for create

creates the JSON for create

Returns

stdClass

Throws

CreateError
if not overridden

Overrides

OpenCloud\Common\PersistentObject::createJson()
protected stdClass
# updateJson( mixed $params = array() )

creates the JSON for update

creates the JSON for update

Returns

stdClass

Throws

UpdateError
if not overridden

Overrides

OpenCloud\Common\PersistentObject::updateJson()
public array|false
# getCreateKeys( )

Retrieve the keys which are required when the object is created.

Retrieve the keys which are required when the object is created.

Returns

array|false
public array|false
# getUpdateKeys( )

Retrieve the keys which are required when the object is updated.

Retrieve the keys which are required when the object is updated.

Returns

array|false
Methods inherited from OpenCloud\Common\PersistentObject
__construct(), action(), checkExtension(), createUrl(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), id(), jsonCollectionElement(), jsonCollectionName(), jsonName(), name(), noCreate(), noDelete(), noUpdate(), parseResponse(), primaryKeyField(), refresh(), refreshFromLocationUrl(), region(), resourceName(), setMetadata(), setParent(), setService(), status(), url(), waitFor()
Methods inherited from OpenCloud\Common\Base
__call(), checkJsonError(), generateUuid(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
Properties inherited from OpenCloud\Common\PersistentObject
$metadata
PHP OpenCloud API API documentation generated by ApiGen 2.8.0