The designateclient.v1.records Module

class designateclient.v1.records.RecordsController(client)[source]

Bases: designateclient.client.CrudController

create(domain, record)[source]

Create a record

Parameters:
  • domainDomain or Domain Identifier
  • record – A Record to create
Returns:

Record

delete(domain, record)[source]

Delete a record

Parameters:
  • domainDomain or Domain Identifier
  • record – A Record, or Record Identifier to delete
get(domain, record_id)[source]

Retrieve a record

Parameters:
  • domainDomain or Domain Identifier
  • record_id – Record Identifier
Returns:

Record

list(domain)[source]

Retrieve a list of records

Parameters:domainDomain or Domain Identifier
Returns:A list of :class:`Record`s
update(domain, record)[source]

Update a record

Parameters:
  • domainDomain or Domain Identifier
  • record – A Record to update
Returns:

Record