Class: Ansible::Ruby::Modules::Os_nova_host_aggregate

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

Overview

Create, update, or delete OpenStack host aggregates. If a aggregate with the supplied name already exists, it will be updated with the new name, new availability zone, new metadata and new list of hosts.

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

#availability_zoneObject?

Returns Availability zone to create aggregate into.

Returns:

  • (Object, nil)

    Availability zone to create aggregate into.



20
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_host_aggregate.rb', line 20

attribute :availability_zone

#hostsArray<String>, ...

Returns List of hosts to set for an aggregate.

Returns:

  • (Array<String>, String, nil)

    List of hosts to set for an aggregate.



23
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_host_aggregate.rb', line 23

attribute :hosts

#metadataHash?

Returns Metadata dict.

Returns:

  • (Hash, nil)

    Metadata dict.



16
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_host_aggregate.rb', line 16

attribute :metadata

#nameString

Returns Name of the aggregate.

Returns:

  • (String)

    Name of the aggregate.



12
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_host_aggregate.rb', line 12

attribute :name

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



27
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_host_aggregate.rb', line 27

attribute :state