Class: IControl::ARX::Policy

Inherits:
Base
  • Object
show all
Defined in:
lib/icontrol/arx/policy.rb,
lib/icontrol/arx.rb

Overview

The Policy Interface allows applications to retrieve ARX policy information.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IControl::Base

Instance Method Details

#definition(opts) ⇒ PolicyDefinition

Returns the details of this policies.

Options Hash (opts):

  • :volume (String)

    Volume name.

  • :policies (String)

    List of policy names.


15
16
17
18
# File 'lib/icontrol/arx/policy.rb', line 15

def definition(opts)
  opts = check_params(opts,[:volume,:policies])
  super(opts)
end

#list(opts) ⇒ String

Returns the list of policies for this namespac and volume.

Options Hash (opts):

  • :volume (String)

    Volume name.


26
27
28
29
# File 'lib/icontrol/arx/policy.rb', line 26

def list(opts)
  opts = check_params(opts,[:volume])
  super(opts)
end

#schedule(opts) ⇒ PolicySchedule

Returns the details of this schedule.

Options Hash (opts):

  • :schedule (String)

    Schedule name.


37
38
39
40
# File 'lib/icontrol/arx/policy.rb', line 37

def schedule(opts)
  opts = check_params(opts,[:schedule])
  super(opts)
end