Skip to content

Commit

Permalink
SP36
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjojeejoseph committed Jun 14, 2024
1 parent c35e034 commit 8dae4e5
Show file tree
Hide file tree
Showing 65 changed files with 6,174 additions and 551 deletions.
9 changes: 4 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ CVPySDK uses REST APIs to perform CommCell operations.
Requirements
------------

- Python 3 and above
- Python 3.6 and above
- `requests <https://pypi.python.org/pypi/requests/>`_ Python package
- `future <https://pypi.python.org/pypi/future>`_ Python package
- `xmltodict <https://pypi.python.org/pypi/xmltodict>`_ Python package
- Commvault Software v11 SP7 or later release with WebConsole installed

Expand All @@ -24,13 +23,13 @@ CVPySDK can be installed directly from PyPI using pip:
>>> pip install cvpysdk


CVPySDK is available on GitHub `here <https://github.com/Commvault/cvpysdk>`__
CVPySDK is available on GitHub `here <https://github.com/Commvault/cvpysdk>`_

It can also be installed from source.

After downloading, from within the ``cvpysdk`` directory, execute:

>>> python setup.py install
>>> pip install .


Using CVPySDK
Expand Down Expand Up @@ -160,7 +159,7 @@ Subclient operations are currently supported for the following Agents:
Documentation
-------------

To get started, please see the `full documentation for this library <https://commvault.github.io/cvpysdk/cvpysdk/index.html>`_
To get started, please see the `full documentation for this library <https://commvault.github.io/cvpysdk/>`_


Contribution Guidelines
Expand Down
8 changes: 3 additions & 5 deletions cvpysdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@
CVPySDK uses Commvault REST API to perform operations on a Commcell.
CVPySDK is available on GitHub (https://github.com/CommvaultEngg/cvpysdk).
CVPySDK is available on GitHub (https://github.com/Commvault/cvpysdk).
CVPySDK is compatible with both Python 2 and Python 3
CVPySDK is compatible with Python 3
CVPySDK requires the following Python packages to run:
- **requests**
- **future**
- **xmltodict**
And Commvault Software v11 SP7 or later release with WebConsole installed
"""

__author__ = 'Commvault Systems Inc.'
__version__ = '11.34'
__version__ = '11.36'
9 changes: 9 additions & 0 deletions cvpysdk/activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@

from .activateapps.entity_manager import EntityManagerTypes, ActivateEntities, Tags, Classifiers

from .activateapps.compliance_utils import ComplianceSearchUtils


class Activate(object):
"""Class for representing activate apps in the commcell."""
Expand All @@ -75,6 +77,7 @@ def __init__(self, commcell_object):
self._fso_server_groups = None
self._sdg_projects = None
self._req_mgr = None
self._compliance_search = None

def __del__(self):
"""Destructor method to delete all instances of apps referenced by this class"""
Expand All @@ -87,6 +90,12 @@ def __del__(self):
del self._sdg_projects
del self._req_mgr

def compliance_search(self):
"""Returns the Compliance Search utility class object from activate apps"""
if self._compliance_search is None:
self._compliance_search = ComplianceSearchUtils(self._commcell_object)
return self._compliance_search

def inventory_manager(self):
"""Returns the Inventories class object from inventory manager app from activate apps"""
if self._inventories is None:
Expand Down
Loading

0 comments on commit 8dae4e5

Please sign in to comment.