| 1 | package WWW::Hetzner::Cloud::Image; | ||
| 2 | # ABSTRACT: Hetzner Cloud Image object | ||
| 3 | |||
| 4 | 60 | our $VERSION = '0.102'; | |
| 5 | |||
| 6 | 60 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 60 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | |||
| 10 | 60 | has _client => ( | |
| 11 | is => 'ro', | ||
| 12 | required => 1, | ||
| 13 | weak_ref => 1, | ||
| 14 | init_arg => 'client', | ||
| 15 | ); | ||
| 16 | |||
| 17 | 60 | has id => ( is => 'ro' ); | |
| 18 | |||
| 19 | |||
| 20 | 60 | has name => ( is => 'ro' ); | |
| 21 | |||
| 22 | |||
| 23 | 60 | has description => ( is => 'ro' ); | |
| 24 | |||
| 25 | |||
| 26 | 60 | has type => ( is => 'ro' ); | |
| 27 | |||
| 28 | |||
| 29 | 60 | has status => ( is => 'ro' ); | |
| 30 | |||
| 31 | |||
| 32 | 60 | has os_flavor => ( is => 'ro' ); | |
| 33 | |||
| 34 | |||
| 35 | 60 | has os_version => ( is => 'ro' ); | |
| 36 | |||
| 37 | |||
| 38 | 60 | has architecture => ( is => 'ro' ); | |
| 39 | |||
| 40 | |||
| 41 | 60 | has disk_size => ( is => 'ro' ); | |
| 42 | |||
| 43 | |||
| 44 | 60 | has created => ( is => 'ro' ); | |
| 45 | |||
| 46 | |||
| 47 | 60 | has deprecated => ( is => 'ro' ); | |
| 48 | |||
| 49 | |||
| 50 | 18 | ▶ | has labels => ( is => 'ro', default => sub { {} } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 51 | |||
| 52 | |||
| 53 | 3 | ▶ | sub data { |
|
Subroutine
data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 54 | 3 | my ($self) = @_; | |
| 55 | return { | ||
| 56 | 3 | id => $self->id, | |
| 57 | name => $self->name, | ||
| 58 | description => $self->description, | ||
| 59 | type => $self->type, | ||
| 60 | status => $self->status, | ||
| 61 | os_flavor => $self->os_flavor, | ||
| 62 | os_version => $self->os_version, | ||
| 63 | architecture => $self->architecture, | ||
| 64 | disk_size => $self->disk_size, | ||
| 65 | created => $self->created, | ||
| 66 | deprecated => $self->deprecated, | ||
| 67 | labels => $self->labels, | ||
| 68 | }; | ||
| 69 | } | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | 60 | 1. | |
| 74 | |||
| 75 | __END__ | ||