NAME

Webservice::OVH::Cloud::Project::Image

SYNOPSIS

use Webservice::OVH;

my $ovh = Webservice::OVH->new_from_json("credentials.json");

my $projects = $ovh->cloud->projects;
my $example_project = $projects->[0];

my $images = $project->images;

foreach my $image (@$images) {
    
    print $image->type;
}

DESCRIPTION

Provides access to information about an image. Nothing more can be done with this.

METHODS

_new_existing

Internal Method to create the image object. This method is not ment to be called directly.

  • Parameter: %params - key => value

  • Return: Webservice::OVH::Cloud::Project::Image

  • Synopsis: Webservice::OVH::Cloud::Project::Image->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );

project

Root Project.

id

Returns the api id

  • Return: VALUE

  • Synopsis: my $id = $image->id;

properties

Returns the raw properties as a hash. This is the original return value of the web-api.

  • Return: HASH

  • Synopsis: my $properties = $image->properties;

visibility

Exposed property value.

  • Return: VALUE

  • Synopsis: my $visibility = $image->visibility;

status

Exposed property value.

  • Return: VALUE

  • Synopsis: my $status = $image->status;

name

Exposed property value.

  • Return: VALUE

  • Synopsis: my $name = $image->name;

region

Exposed property value.

  • Return: VALUE

  • Synopsis: my $region = $image->region;

min_disk

Exposed property value.

  • Return: VALUE

  • Synopsis: my $min_disk = $image->min_disk;

size

Exposed property value.

  • Return: VALUE

  • Synopsis: my $size = $image->size;

creation_date

Exposed property value.

  • Return: DateTime

  • Synopsis: my $creation_date = $image->creation_date;

min_ram

Exposed property value.

  • Return: VALUE

  • Synopsis: my $min_ram = $image->min_ram;

user

Exposed property value.

  • Return: VALUE

  • Synopsis: my $user = $image->user;

type

Exposed property value.

  • Return: VALUE

  • Synopsis: my $type = $image->type;