Class: Ansible::Ruby::Modules::Clc_publicip

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

Overview

An Ansible module to add or delete public ip addresses on an existing server or servers in CenturyLink Cloud.

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

#portsObject?

Returns A list of ports to expose. This is required when state is ‘present’.

Returns:

  • (Object, nil)

    A list of ports to expose. This is required when state is ‘present’



16
# File 'lib/ansible/ruby/modules/generated/cloud/centurylink/clc_publicip.rb', line 16

attribute :ports

#protocol:TCP, ...

Returns The protocol that the public IP will listen for.

Returns:

  • (:TCP, :UDP, :ICMP, nil)

    The protocol that the public IP will listen for.



12
# File 'lib/ansible/ruby/modules/generated/cloud/centurylink/clc_publicip.rb', line 12

attribute :protocol

#server_idsObject

Returns A list of servers to create public ips on.

Returns:

  • (Object)

    A list of servers to create public ips on.



19
# File 'lib/ansible/ruby/modules/generated/cloud/centurylink/clc_publicip.rb', line 19

attribute :server_ids

#state:present, ...

Returns Determine whether to create or delete public IPs. If present module will not create a second public ip if one already exists.

Returns:

  • (:present, :absent, nil)

    Determine whether to create or delete public IPs. If present module will not create a second public ip if one already exists.



23
# File 'lib/ansible/ruby/modules/generated/cloud/centurylink/clc_publicip.rb', line 23

attribute :state

#wait:yes, ...

Returns Whether to wait for the tasks to finish before returning.

Returns:

  • (:yes, :no, nil)

    Whether to wait for the tasks to finish before returning.



27
# File 'lib/ansible/ruby/modules/generated/cloud/centurylink/clc_publicip.rb', line 27

attribute :wait