Class: Ansible::Ruby::Modules::Digital_ocean_floating_ip

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

Overview

Create/delete/assign a floating IP.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#droplet_idInteger?

Returns The Droplet that the Floating IP has been assigned to.

Returns:

  • (Integer, nil)

    The Droplet that the Floating IP has been assigned to.



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

attribute :droplet_id

#ipString?

Returns Public IP address of the Floating IP. Used to remove an IP.

Returns:

  • (String, nil)

    Public IP address of the Floating IP. Used to remove an IP



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

attribute :ip

#oauth_tokenObject

Returns DigitalOcean OAuth token.

Returns:

  • (Object)

    DigitalOcean OAuth token.



28
# File 'lib/ansible/ruby/modules/generated/cloud/digital_ocean/digital_ocean_floating_ip.rb', line 28

attribute :oauth_token

#regionString?

Returns The region that the Floating IP is reserved to.

Returns:

  • (String, nil)

    The region that the Floating IP is reserved to.



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

attribute :region

#state:present, ...

Returns Indicate desired state of the target.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the target.



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

attribute :state