DNS-Hetzner

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Release history for DNS::Hetzner
================================

0.05   2021-01-11 13:19:00

  * fix cpantester fails (hopefully)

0.04   2021-01-10 10:27:00

  * Regenerate API classes for API version 1.1.1
  * Add stuff for new Primary Server endpoint

0.03   2021-01-08 08:25:00

  * use Dist::Zilla plugin SyncCPANfile to keep cpanfile in sync with prereq list in dist.ini
  * let Dist::Zilla::Plugin::PkgVersion set the version numbers. This removes unecessary maintenance burdens from us ;-)
  * remove DNS::Hetzner::API as the functionality is only used (and useful) in DNS::Hetzner the load_namespace function is moved to DNS::Hetzner
  * need to use Types::Standard as Types::Mojo doesn't inherit methods from Types::Standard since version 0.05 (thanks CPANTesters)

0.02   2021-01-06 05:20:00

lib/DNS/Hetzner/API/PrimaryServers.pm  view on Meta::CPAN

use Types::Standard qw(:all);

use Mojo::Base -strict, -signatures;

extends 'DNS::Hetzner::APIBase';

with 'MooX::Singleton';

use DNS::Hetzner::Schema;

has endpoint  => ( is => 'ro', isa => Str, default => sub { 'primary_servers' } );

sub list ($self, %params) {
    return $self->_do( 'GetPrimaryServers', \%params, '', { type => 'get' } );
}

sub create ($self, %params) {
    return $self->_do( 'CreatePrimaryServer', \%params, '', { type => 'post' } );
}

sub delete ($self, %params) {

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.420 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )