Module: Gandi

Defined in:
lib/gandi.rb,
lib/gandi/errors.rb,
lib/gandi/session.rb,
lib/gandi/fault_code.rb,
lib/gandi/fault_code/data.rb,
lib/gandi/fault_code/server.rb,
lib/gandi/fault_code/unknown.rb

Defined Under Namespace

Classes: DataError, FaultCode, FaultCodeError, ProxyCall, ServerError, Session, UnknownError

Constant Summary collapse

VERSION =
'2.1.1'
ENDPOINT =
{
  test: 'https://rpc.ote.gandi.net/xmlrpc/',
  production: 'https://rpc.gandi.net/xmlrpc/',
}
VALID_METHODS =
%w(
catalog.list
cert.count
cert.create
cert.delete
cert.info
cert.list
cert.package.list
cert.renew
cert.update
contact.balance
contact.can_associate
contact.can_associate_domain
contact.create
contact.delete
contact.info
contact.list
contact.update
datacenter.list
domain.autorenew.activate
domain.autorenew.deactivate
domain.available
domain.contacts.set
domain.count
domain.create
domain.dnssec.create
domain.dnssec.delete
domain.dnssec.list
domain.forward.count
domain.forward.create
domain.forward.delete
domain.forward.list
domain.forward.update
domain.host.count
domain.host.create
domain.host.delete
domain.host.info
domain.host.list
domain.host.update
domain.info
domain.list
domain.mailbox.alias.set
domain.mailbox.count
domain.mailbox.create
domain.mailbox.delete
domain.mailbox.info
domain.mailbox.list
domain.mailbox.purge
domain.mailbox.responder.activate
domain.mailbox.responder.deactivate
domain.mailbox.update
domain.nameservers.set
domain.owner.set
domain.owner.set_dry_run
domain.packmail.autorenew
domain.packmail.create
domain.packmail.delete
domain.packmail.info
domain.packmail.renew
domain.packmail.update
domain.renew
domain.reseller.set
domain.restore
domain.status.lock
domain.status.unlock
domain.tld.list
domain.tld.region
domain.transferin.available
domain.transferin.proceed
domain.webredir.count
domain.webredir.create
domain.webredir.delete
domain.webredir.list
domain.webredir.update
domain.zone.clone
domain.zone.count
domain.zone.create
domain.zone.delete
domain.zone.info
domain.zone.list
domain.zone.record.add
domain.zone.record.count
domain.zone.record.delete
domain.zone.record.list
domain.zone.record.set
domain.zone.record.update
domain.zone.set
domain.zone.update
domain.zone.version.count
domain.zone.version.delete
domain.zone.version.new
domain.zone.version.set
domain.zone.version.list
hosting.datacenter.list
hosting.disk.count
hosting.disk.create
hosting.disk.create_from
hosting.disk.delete
hosting.disk.info
hosting.disk.list
hosting.disk.list_kernels
hosting.disk.list_options
hosting.disk.rollback_from
hosting.disk.update
hosting.iface.count
hosting.iface.create
hosting.iface.delete
hosting.iface.info
hosting.iface.ip_attach
hosting.iface.ip_detach
hosting.iface.list
hosting.iface.update
hosting.image.info
hosting.image.list
hosting.ip.count
hosting.ip.create
hosting.ip.delete
hosting.ip.info
hosting.ip.list
hosting.ip.update
hosting.product.create
hosting.product.delete
hosting.product.renew
hosting.product.update
hosting.vm.count
hosting.vm.create
hosting.vm.create_from
hosting.vm.delete
hosting.vm.disk_attach
hosting.vm.disk_detach
hosting.vm.disk_rollback
hosting.vm.iface_attach
hosting.vm.iface_detach
hosting.vm.info
hosting.vm.list
hosting.vm.reboot
hosting.vm.start
hosting.vm.stop
hosting.vm.update
paas.count
paas.create
paas.delete
paas.info
paas.list
paas.renew
paas.restart
paas.update
paas.vhost.count
paas.vhost.create
paas.vhost.delete
paas.vhost.get_dns_entries
paas.vhost.info
paas.vhost.list
paas.snapshot.count
paas.snapshot.info
paas.snapshot.list
paas.type.count
paas.type.list
operation.cancel
operation.count
operation.info
operation.list
operation.relaunch
version.info
)

Class Method Summary collapse

Class Method Details

.silence_warningsObject



18
19
20
21
22
23
# File 'lib/gandi.rb', line 18

def self.silence_warnings
  old_verbose, $VERBOSE = $VERBOSE, nil
  yield
ensure
  $VERBOSE = old_verbose
end