Class: Ansible::Ruby::Modules::Vmware_datastore_maintenancemode
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vmware_datastore_maintenancemode
- 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
-
#cluster_name ⇒ String?
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.
-
#datastore ⇒ String?
Name of datastore to manage.,If C(datastore_cluster) or C(cluster_name) are not set, this parameter is required.
-
#datastore_cluster ⇒ String?
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.
-
#state ⇒ :present, ...
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.
Methods inherited from Base
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_name ⇒ String?
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.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_datastore_maintenancemode.rb', line 20 attribute :cluster_name |
#datastore ⇒ String?
Returns 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_cluster ⇒ String?
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.
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.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_datastore_maintenancemode.rb', line 24 attribute :state |