Class: IControl::WebAccelerator::Policies

Inherits:
Base
  • Object
show all
Defined in:
lib/icontrol/web_accelerator/policies.rb,
lib/icontrol/web_accelerator.rb

Overview

Allows manipulation of Policies.

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

#delete_policyObject

Delete a namd Policy.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



14
15
16
# File 'lib/icontrol/web_accelerator/policies.rb', line 14

def delete_policy
  super
end

#import_policy(opts) ⇒ Object

Import a Policy onto this WebAccelerator.

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :filename (String)

    The filename of the Policy file to install. Length limit: 255.

  • :overwrite (boolean)

    If true, the imported policy will overwrite any existing policy of the same name.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



46
47
48
49
# File 'lib/icontrol/web_accelerator/policies.rb', line 46

def import_policy(opts)
  opts = check_params(opts,[:filename,:overwrite])
  super(opts)
end

#listString

Get a list of Policies present on this WebAccelerator.

Returns:

  • (String)

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



25
26
27
# File 'lib/icontrol/web_accelerator/policies.rb', line 25

def list
  super
end

#versionString

Gets the version information for this interface.

Returns:

  • (String)


33
34
35
# File 'lib/icontrol/web_accelerator/policies.rb', line 33

def version
  super
end