Class: IControl::Management::Partition
- Inherits:
-
Base
- Object
- Base
- IControl::Management::Partition
- Defined in:
- lib/icontrol/management/partition.rb,
lib/icontrol/management.rb
Overview
The Partition interface enables you to manage AuthZ Administrative Partitions, as well as relationship between users, roles, and their associated partitions.
Defined Under Namespace
Classes: AuthZPartition, AuthZPartitionSequence
Instance Method Summary (collapse)
-
- (String) active_partition
Gets the active partition for the current user.
-
- (Object) create_partition
Creates this AuthZ partition.
-
- (Object) delete_all_partitions
Deletes all AuthZ partition, except for the "Common" partition.
-
- (Object) delete_partition(opts)
Deletes this AuthZ partition.
-
- (AuthZPartition) partition_list
Gets a list of all AuthZ partition.
-
- (Object) set_active_partition(opts)
Sets the active partition for the current user.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (String) active_partition
Gets the active partition for the current user. The active partition is the administrative partition where all configuration will take place until a new active partition is selected. Each user can only be in one active partition at any given time. By default, if not explicitly set, the active partition for a user will be "Common".
57 58 59 |
# File 'lib/icontrol/management/partition.rb', line 57 def active_partition super end |
- (Object) create_partition
Creates this AuthZ partition.
16 17 18 |
# File 'lib/icontrol/management/partition.rb', line 16 def create_partition super end |
- (Object) delete_all_partitions
Deletes all AuthZ partition, except for the "Common" partition.
26 27 28 |
# File 'lib/icontrol/management/partition.rb', line 26 def delete_all_partitions super end |
- (Object) delete_partition(opts)
Deletes this AuthZ partition. It's recommended that if a partition to be deleted is also the current active partition, the user should change the active partition to something else first (using set_active_partition). Otherwise, in the event that the partition to be deleted is the current active partition, iControl will automatically default the new active partition to the "Common" partition.
42 43 44 45 |
# File 'lib/icontrol/management/partition.rb', line 42 def delete_partition(opts) check_params(opts,[:partition_names]) super end |
- (AuthZPartition) partition_list
Gets a list of all AuthZ partition.
68 69 70 |
# File 'lib/icontrol/management/partition.rb', line 68 def partition_list super end |
- (Object) set_active_partition(opts)
Sets the active partition for the current user. The active partition is the administrative partition where all configuration will take place until a new active partition is selected. Each user can only be in one active partition at any given time. By default, if not explicitly set, the active partition for a user will be "Common".
91 92 93 94 |
# File 'lib/icontrol/management/partition.rb', line 91 def set_active_partition(opts) check_params(opts,[:active_partition]) super end |
- (String) version
Gets the version information for this interface.
76 77 78 |
# File 'lib/icontrol/management/partition.rb', line 76 def version super end |