Lue dans les fichiers PHP du paquet au commit 570cf02f7af0 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.
ScalewayFactoryclassScaleway, from its options:
3 options · 1 method
ScalewayProviderclassScaleway's Domains and DNS API (v2beta1): the registrar's search, purchase and renewal (/search-domains, /buy-domains, /renew-domains), the project's domains, a zone's name servers and records - a record changed through the zone's PATCH of changes (add, set by id, delete by id).
15 methods · 1 constant
Omnidns\Scaleway
ScalewayFactory class
final class ScalewayFactory extends ProviderFactory ScalewayFactory.php:18
Scaleway, from its options:
secret_key an API key's secret (required), with DomainsDNSFullAccess (or DomainsDNSReadOnly to read) project_id the project domains are bought into and listed from (required to register; the key's default project otherwise) endpoint https://api.scaleway.com/domain/v2beta1
Options
| Option | Default | |
|---|---|---|
project_id | '' | |
endpoint | ScalewayProvider::ENDPOINT | |
secret_key | required |
ScalewayFactory::__construct()
public function __construct(readonly HttpClientInterface $http)ScalewayProvider class
final class ScalewayProvider implements AvailabilityInterface, RegistrarInterface, DomainsInterface, NameserversInterface, DnsInterface ScalewayProvider.php:29
Scaleway's Domains and DNS API (v2beta1): the registrar's search, purchase and renewal (/search-domains, /buy-domains, /renew-domains), the project's domains, a zone's name servers and records - a record changed through the zone's PATCH of changes (add, set by id, delete by id).
const ENDPOINT = 'https://api.scaleway.com/domain/v2beta1'
ScalewayProvider::__construct()
public function __construct(readonly HttpClientInterface $http, readonly string $secretKey, readonly ?string $projectId = null, readonly string $endpoint = self::ENDPOINT)ScalewayProvider::getName()
public function getName(): stringScalewayProvider::getTitle()
public function getTitle(): stringScalewayProvider::capabilities()
public function capabilities(): CapabilitiesScalewayProvider::check()
public function check(string $domain): AvailabilityScalewayProvider::register()
public function register(string $domain, int $years = 1, ?Contact $owner = null): OrderScalewayProvider::renew()
public function renew(string $domain, int $years = 1): OrderScalewayProvider::domains()
public function domains(): arrayScalewayProvider::domain()
public function domain(string $domain): DomainInfoScalewayProvider::nameservers()
public function nameservers(string $domain): arrayScalewayProvider::setNameservers()
public function setNameservers(string $domain, array $nameservers): voidScalewayProvider::records()
public function records(string $zone, ?string $type = null, ?string $name = null): arrayScalewayProvider::add()
public function add(string $zone, Record $record): RecordScalewayProvider::update()
public function update(string $zone, Record $current, Record $new): RecordScalewayProvider::delete()
public function delete(string $zone, Record $record): void