Class: Ansible::Ruby::Modules::Vmware_guest_custom_attribute_defs

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

Overview

This module can be used to add and remove custom attributes definitions for the given virtual machine from VMWare.

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

#attribute_keyString?

Returns Name of the custom attribute definition.,This is required parameter, if C(state) is set to C(present) or C(absent).

Returns:

  • (String, nil)

    Name of the custom attribute definition.,This is required parameter, if C(state) is set to C(present) or C(absent).



12
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_custom_attribute_defs.rb', line 12

attribute :attribute_key

#state:present, :absent

Returns Manage definition of custom attributes.,If set to C(present) and definition not present, then custom attribute definition is created.,If set to C(present) and definition is present, then no action taken.,If set to C(absent) and definition is present, then custom attribute definition is removed.,If set to C(absent) and definition is absent, then no action taken.

Returns:

  • (:present, :absent)

    Manage definition of custom attributes.,If set to C(present) and definition not present, then custom attribute definition is created.,If set to C(present) and definition is present, then no action taken.,If set to C(absent) and definition is present, then custom attribute definition is removed.,If set to C(absent) and definition is absent, then no action taken.



16
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_guest_custom_attribute_defs.rb', line 16

attribute :state