Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • 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
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

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

Interfaces

  • HasPtrRecordsInterface

Class Domain

The Domain class represents a single domain

Note that the Subdomain class is defined in this same file because of mutual dependencies.

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Common\Resource\PersistentResource
Extended by OpenCloud\DNS\Resource\AbstractResource
Extended by OpenCloud\DNS\Resource\Domain

Direct known subclasses

OpenCloud\DNS\Resource\Subdomain

Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/Domain.php

Methods summary

public OpenCloud\DNS\Resource\Record
# record( $info = null )

returns a Record object

returns a Record object

Note that this method is available at the DNS level, but only for PTR records.

Returns

OpenCloud\DNS\Resource\Record
public OpenCloud\DNS\Collection\DnsIterator
# recordList( array $filter = array() )

returns a Collection of Record objects

returns a Collection of Record objects

Parameters

$filter
query-string parameters

Returns

OpenCloud\DNS\Collection\DnsIterator
public
# subdomain( $info = array() )

returns a Subdomain object (child of current domain)

returns a Subdomain object (child of current domain)

public OpenCloud\DNS\Collection\DnsIterator
# subdomainList( array $filter = array() )

returns a Collection of subdomains

returns a Collection of subdomains

The subdomains are all DNS:Domain objects that are children of the current domain.

Parameters

$filter

key/value pairs for query string parameters return \OpenCloud\Collection

Returns

OpenCloud\DNS\Collection\DnsIterator
public integer
# addRecord( OpenCloud\DNS\Resource\Record $record )

Adds a new record to the list (for multiple record creation)

Adds a new record to the list (for multiple record creation)

Parameters

$record
$rec the record to add

Returns

integer
the number of records

Api

public integer
# addSubdomain( OpenCloud\DNS\Resource\Subdomain $subdomain )

adds a new subdomain (for multiple subdomain creation)

adds a new subdomain (for multiple subdomain creation)

Parameters

$subdomain
$subd the subdomain to add

Returns

integer
the number of subdomains

Api

public DNS\Changes
# changes( string $since = null )

returns changes since a specified date/time

returns changes since a specified date/time

Parameters

$since
the date or time

Returns

DNS\Changes
public OpenCloud\DNS\Resource\AsyncResponse
# export( )

exports the domain

exports the domain

Returns

OpenCloud\DNS\Resource\AsyncResponse
public OpenCloud\DNS\Resource\AsyncResponse
# cloneDomain( string $newDomainName, boolean $subdomains = true, boolean $comments = true, boolean $email = true, boolean $records = true )

clones the domain to the specified target domain

clones the domain to the specified target domain

Parameters

$newDomainName
$newdomain the new domain to create from this domain
$subdomains
$sub to clone subdomains as well
$comments

Replace occurrences of the reference domain name with the new domain name in comments

$email

Replace occurrences of the reference domain name with the new domain name in email addresses on the cloned (new) domain.

$records

Replace occurrences of the reference domain name with the new domain name in data fields (of records) on the cloned (new) domain. Does not affect NS records.

Returns

OpenCloud\DNS\Resource\AsyncResponse

Methods inherited from OpenCloud\DNS\Resource\AbstractResource

create(), delete(), getCreateKeys(), getUpdateKeys(), update()

Methods inherited from OpenCloud\Common\Resource\PersistentResource

checkExtension(), createUrl(), id(), name(), refresh(), refreshFromLocationUrl(), region(), status(), waitFor()

Methods inherited from OpenCloud\Common\Resource\BaseResource

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

Methods inherited from OpenCloud\Common\Base

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

Constants summary

Constants inherited from OpenCloud\Common\Base

PATCH_CONTENT_TYPE

Properties summary

public $id
#
public $accountId
#
public $ttl
#
public $updated
#
public $emailAddress
#
public $created
#
public $name
#
public $comment
#
API documentation generated by ApiGen