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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/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, fix_inclusion, #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.



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

attribute :description

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

Returns The datacenter location.

Returns:

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

    The datacenter location.



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

attribute :location

#nameObject

Returns The name of the virtual datacenter.

Returns:

  • (Object)

    The name of the virtual datacenter.



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

attribute :name

#state:present, ...

Returns create or terminate datacenters.

Returns:

  • (:present, :absent, nil)

    create or terminate datacenters



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

attribute :state

#subscription_passwordObject?

Returns THe ProfitBricks password. Overrides the PB_PASSWORD environment variable.

Returns:

  • (Object, nil)

    THe ProfitBricks password. Overrides the PB_PASSWORD environment variable.



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

attribute :subscription_password

#subscription_userObject?

Returns The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable.

Returns:

  • (Object, nil)

    The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable.



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

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



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

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



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

attribute :wait_timeout