Class: DropletKit::Image

Inherits:
BaseModel show all
Defined in:
lib/droplet_kit/models/image.rb

Constant Summary

Constants inherited from BaseModel

BaseModel::DO_NAMESPACE, BaseModel::UNSUPPORTED_COLLECTIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#collection_name, from_identifier, from_urn, #identifier, #inspect, #urn, valid_urn?

Instance Attribute Details

#created_atString

Returns A time value given in ISO8601 combined date and time format that represents when the Image was created.

Examples:

‘2014-11-04T22:23:02Z’


Returns:

  • (String)

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



53
# File 'lib/droplet_kit/models/image.rb', line 53

attribute :created_at

#distributionString

Returns This attribute describes the base distribution used for this image.

Examples:

‘Ubuntu’


Returns:

  • (String)

    This attribute describes the base distribution used for this image.



18
# File 'lib/droplet_kit/models/image.rb', line 18

attribute :distribution

#idFixnum

Returns A unique number that can be used to identify and reference a specific image.

Examples:

12345


Returns:

  • (Fixnum)

    A unique number that can be used to identify and reference a specific image.



8
# File 'lib/droplet_kit/models/image.rb', line 8

attribute :id

#min_disk_sizeFixnum

Returns The minimum ‘disk’ required for a size to use this image.

Examples:

‘snapshot’


Returns:

  • (Fixnum)

    The minimum ‘disk’ required for a size to use this image.



43
# File 'lib/droplet_kit/models/image.rb', line 43

attribute :min_disk_size

#nameString

Returns The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.

Examples:

‘foo’


Returns:

  • (String)

    The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.



13
# File 'lib/droplet_kit/models/image.rb', line 13

attribute :name

#publicBoolean

Returns This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.

Examples:

false


Returns:

  • (Boolean)

    This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.



28
# File 'lib/droplet_kit/models/image.rb', line 28

attribute :public

#regionsArray<String>

Returns This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.

Examples:

“nyc2”, “nyc2”

Returns:

  • (Array<String>)

    This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.



33
# File 'lib/droplet_kit/models/image.rb', line 33

attribute :regions

#size_gigabytesFixnum

Returns The size of the image in gigabytes.

Examples:

2.34


Returns:

  • (Fixnum)

    The size of the image in gigabytes.



48
# File 'lib/droplet_kit/models/image.rb', line 48

attribute :size_gigabytes

#slugString

Returns A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.

Examples:

‘ubuntu-16-04-x64’


Returns:

  • (String)

    A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.



23
# File 'lib/droplet_kit/models/image.rb', line 23

attribute :slug

#typeString

Returns The kind of image, describing the duration of how long the image is stored. This is either “snapshot” or “backup”.

Examples:

‘snapshot’


Returns:

  • (String)

    The kind of image, describing the duration of how long the image is stored. This is either “snapshot” or “backup”.



38
# File 'lib/droplet_kit/models/image.rb', line 38

attribute :type