NAME

DigitalOcean::Action - Represents an Action object in the DigitalOcean API

VERSION

version 0.17

SYNOPSIS

    FILL ME IN   

DESCRIPTION

FILL ME IN

METHODS

id

A unique numeric ID that can be used to identify and reference an action.

status

The current status of the action. This can be "in-progress", "completed", or "errored".

type

This is the type of action that the object represents. For example, this could be "transfer" to represent the state of an image transfer action.

started_at

A time value given in ISO8601 combined date and time format that represents when the action was initiated.

completed_at

A time value given in ISO8601 combined date and time format that represents when the action was completed.

resource_id

A unique identifier for the resource that the action is associated with.

resource_type

The type of resource that the action is associated with.

region

Returns a DigitalOcean::Region object.

region_slug

A slug representing the region where the action occurred.

complete

This method returns true if the action is complete, false if it is not.

    if($action->complete) { 
        #do something
    }

wait

This method will wait for an action to complete and will not return until the action has completed. It is recommended to not use this directly, but rather to let DigitalOcean call this for you (see WAITING ON EVENTS).

    $action->wait;
 
    #do stuff now that event is done.

This method works by making requests to Digital Ocean's API to see if the action is complete yet. See TIME BETWEEN REQUESTS.

id

AUTHOR

Adam Hopkins <srchulo@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Adam Hopkins.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.