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.

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :volume (String)

    Volume name.

  • :policies (String)

    List of policy names.

Returns:


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.

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :volume (String)

    Volume name.

Returns:

  • (String)

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.

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :schedule (String)

    Schedule name.

Returns:


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

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