Class: Ansible::Ruby::Modules::Profitbricks_datacenter

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb

Overview

This is a simple module that supports creating or removing vDCs. A vDC is required before you can create servers. This module has a dependency on profitbricks >= 1.0.0

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

#descriptionObject?

Returns The description of the virtual datacenter.

Returns:

  • (Object, nil)

    The description of the virtual datacenter.



15
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 15

attribute :description

#location:"us/las", ...

Returns The datacenter location.

Returns:

  • (:"us/las", :"us/lasdev", :"de/fra", :"de/fkb", nil)

    The datacenter location.



18
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 18

attribute :location

#nameObject

Returns The name of the virtual datacenter.

Returns:

  • (Object)

    The name of the virtual datacenter.



11
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 11

attribute :name

#state:present, ...

Returns create or terminate datacenters.

Returns:

  • (:present, :absent, nil)

    create or terminate datacenters



36
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 36

attribute :state

#subscription_passwordObject?

Returns THe ProfitBricks password. Overrides the PB_PASSWORD environement variable.

Returns:

  • (Object, nil)

    THe ProfitBricks password. Overrides the PB_PASSWORD environement variable.



25
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 25

attribute :subscription_password

#subscription_userObject?

Returns The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.

Returns:

  • (Object, nil)

    The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.



22
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 22

attribute :subscription_user

#wait:yes, ...

Returns wait for the datacenter to be created before returning.

Returns:

  • (:yes, :no, nil)

    wait for the datacenter to be created before returning



28
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 28

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



32
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_datacenter.rb', line 32

attribute :wait_timeout