Class: Ansible::Ruby::Modules::Digital_ocean_tag

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/digital_ocean/digital_ocean_tag.rb

Overview

Create and remove tag(s) to DigitalOcean resource.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameString

Returns The name of the tag. The supported characters for names include alphanumeric characters, dashes, and underscores.

Returns:

  • (String)

    The name of the tag. The supported characters for names include alphanumeric characters, dashes, and underscores.



12
# File 'lib/ansible/ruby/modules/generated/cloud/digital_ocean/digital_ocean_tag.rb', line 12

attribute :name

#resource_idString?

Returns The ID of the resource to operate on.,The data type of resource_id is changed from integer to string, from version 2.5.

Returns:

  • (String, nil)

    The ID of the resource to operate on.,The data type of resource_id is changed from integer to string, from version 2.5.



16
# File 'lib/ansible/ruby/modules/generated/cloud/digital_ocean/digital_ocean_tag.rb', line 16

attribute :resource_id

#resource_type:droplet?

Returns The type of resource to operate on. Currently, only tagging of droplets is supported.

Returns:

  • (:droplet, nil)

    The type of resource to operate on. Currently, only tagging of droplets is supported.



20
# File 'lib/ansible/ruby/modules/generated/cloud/digital_ocean/digital_ocean_tag.rb', line 20

attribute :resource_type

#state:present, ...

Returns Whether the tag should be present or absent on the resource.

Returns:

  • (:present, :absent, nil)

    Whether the tag should be present or absent on the resource.



24
# File 'lib/ansible/ruby/modules/generated/cloud/digital_ocean/digital_ocean_tag.rb', line 24

attribute :state