Class: Ansible::Ruby::Modules::Digital_ocean_sshkey

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

Overview

Create/delete an SSH key.

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

#api_keyString?

Returns DigitalOcean api key.

Returns:

  • (String, nil)

    DigitalOcean api key.



19
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb', line 19

attribute :api_key

#client_idString?

Returns DigitalOcean manager id.

Returns:

  • (String, nil)

    DigitalOcean manager id.



15
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb', line 15

attribute :client_id

#idObject?

Returns Numeric, the SSH key id you want to operate on.

Returns:

  • (Object, nil)

    Numeric, the SSH key id you want to operate on.



23
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb', line 23

attribute :id

#nameString?

Returns String, this is the name of an SSH key to create or destroy.

Returns:

  • (String, nil)

    String, this is the name of an SSH key to create or destroy.



26
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb', line 26

attribute :name

#ssh_pub_keyString?

Returns The public SSH key you want to add to your account.

Returns:

  • (String, nil)

    The public SSH key you want to add to your account.



30
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb', line 30

attribute :ssh_pub_key

#state:present, ...

Returns Indicate desired state of the target.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the target.



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean_sshkey.rb', line 11

attribute :state