Class: Ansible::Ruby::Modules::Vmware_datastore_maintenancemode

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

Overview

This module can be used to manage maintenance mode of a datastore.

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

#cluster_nameString?

Returns Name of the cluster where datastore is connected to.,If multiple datastores are connected to the given cluster, then all datastores will be managed by C(state).,If C(datastore) or C(datastore_cluster) are not set, this parameter is required.

Returns:

  • (String, nil)

    Name of the cluster where datastore is connected to.,If multiple datastores are connected to the given cluster, then all datastores will be managed by C(state).,If C(datastore) or C(datastore_cluster) are not set, this parameter is required.



20
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_datastore_maintenancemode.rb', line 20

attribute :cluster_name

#datastoreString?

Returns Name of datastore to manage.,If C(datastore_cluster) or C(cluster_name) are not set, this parameter is required.

Returns:

  • (String, nil)

    Name of datastore to manage.,If C(datastore_cluster) or C(cluster_name) are not set, this parameter is required.



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

attribute :datastore

#datastore_clusterString?

Returns Name of the datastore cluster from all child datastores to be managed.,If C(datastore) or C(cluster_name) are not set, this parameter is required.

Returns:

  • (String, nil)

    Name of the datastore cluster from all child datastores to be managed.,If C(datastore) or C(cluster_name) are not set, this parameter is required.



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

attribute :datastore_cluster

#state:present, ...

Returns If set to C(present), then enter datastore into maintenance mode.,If set to C(present) and datastore is already in maintenance mode, then no action will be taken.,If set to C(absent) and datastore is in maintenance mode, then exit maintenance mode.,If set to C(absent) and datastore is not in maintenance mode, then no action will be taken.

Returns:

  • (:present, :absent, nil)

    If set to C(present), then enter datastore into maintenance mode.,If set to C(present) and datastore is already in maintenance mode, then no action will be taken.,If set to C(absent) and datastore is in maintenance mode, then exit maintenance mode.,If set to C(absent) and datastore is not in maintenance mode, then no action will be taken.



24
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_datastore_maintenancemode.rb', line 24

attribute :state