|
| 1 | +# API Reference |
| 2 | + |
| 3 | +Welcome to the MAS DevOps API reference documentation. This section provides detailed documentation for all modules, classes, and functions in the `mas-devops` package. |
| 4 | + |
| 5 | +## Core Modules |
| 6 | + |
| 7 | +These modules provide fundamental operations for working with OpenShift/Kubernetes and related technologies: |
| 8 | + |
| 9 | +- **[OCP](ocp.md)**: OpenShift/Kubernetes cluster operations including namespace management, resource creation, and cluster interactions |
| 10 | +- **[Tekton](tekton.md)**: Pipeline management, installation, and execution of Tekton pipelines for MAS automation |
| 11 | +- **[OLM](olm.md)**: Operator Lifecycle Manager operations for installing and managing operators |
| 12 | +- **[Utils](utils.md)**: Common utility functions and helper methods used throughout the library |
| 13 | + |
| 14 | +## MAS Modules |
| 15 | + |
| 16 | +Modules specifically designed for managing Maximo Application Suite: |
| 17 | + |
| 18 | +- **[Suite](mas/suite.md)**: Core MAS suite management including installation, configuration, and lifecycle operations |
| 19 | +- **[Apps](mas/apps.md)**: MAS application management for deploying and configuring MAS applications like Manage, Monitor, etc. |
| 20 | + |
| 21 | +## Service Integration Modules |
| 22 | + |
| 23 | +Modules for integrating with various services and dependencies: |
| 24 | + |
| 25 | +- **[DB2](db2.md)**: Database operations including DB2 configuration validation and management |
| 26 | +- **[SLS](sls.md)**: Suite License Service integration for license management |
| 27 | +- **[AI Service](aiservice.md)**: AI/ML service management and configuration |
| 28 | +- **[Slack](slack.md)**: Slack notification and alerting integration |
| 29 | + |
| 30 | +## SaaS Modules |
| 31 | + |
| 32 | +Modules for SaaS-specific operations: |
| 33 | + |
| 34 | +- **[Job Cleaner](saas/job_cleaner.md)**: Utilities for cleaning up completed jobs in SaaS environments |
| 35 | + |
| 36 | +## User Management |
| 37 | + |
| 38 | +- **[Users](users.md)**: User creation and management for MAS deployments |
| 39 | + |
| 40 | +## Module Overview |
| 41 | + |
| 42 | +### Core Operations |
| 43 | + |
| 44 | +The core modules provide the foundation for all MAS DevOps operations: |
| 45 | + |
| 46 | +```python |
| 47 | +from mas.devops.ocp import createNamespace, getResource |
| 48 | +from mas.devops.tekton import installOpenShiftPipelines |
| 49 | +from mas.devops.olm import installOperator |
| 50 | +from mas.devops.utils import waitForResource |
| 51 | +``` |
| 52 | + |
| 53 | +### MAS Management |
| 54 | + |
| 55 | +Work with MAS suite and applications: |
| 56 | + |
| 57 | +```python |
| 58 | +from mas.devops.mas.suite import installMAS, configureMAS |
| 59 | +from mas.devops.mas.apps import installApp, configureApp |
| 60 | +``` |
| 61 | + |
| 62 | +### Service Integration |
| 63 | + |
| 64 | +Integrate with external services: |
| 65 | + |
| 66 | +```python |
| 67 | +from mas.devops.db2 import validateDB2Config |
| 68 | +from mas.devops.sls import configureSLS |
| 69 | +from mas.devops.slack import sendSlackNotification |
| 70 | +``` |
| 71 | + |
| 72 | +## Navigation |
| 73 | + |
| 74 | +Use the navigation menu on the left to browse through the API documentation for each module. Each module page includes: |
| 75 | + |
| 76 | +- Module overview and purpose |
| 77 | +- Class and function documentation with parameters and return types |
| 78 | +- Usage examples |
| 79 | +- Related modules and cross-references |
| 80 | + |
| 81 | +## Conventions |
| 82 | + |
| 83 | +Throughout the API documentation: |
| 84 | + |
| 85 | +- **Required parameters** are clearly marked |
| 86 | +- **Optional parameters** include default values |
| 87 | +- **Return types** are specified for all functions |
| 88 | +- **Exceptions** that may be raised are documented |
| 89 | +- **Examples** demonstrate common usage patterns |
| 90 | + |
| 91 | +## Getting Help |
| 92 | + |
| 93 | +If you need help using the API: |
| 94 | + |
| 95 | +1. Check the [Quick Start Guide](../getting-started/quickstart.md) for common usage patterns |
| 96 | +2. Review the specific module documentation for detailed information |
| 97 | +3. Look at the [CLI Tools](../cli/index.md) for command-line usage examples |
| 98 | +4. Visit the [GitHub repository](https://github.com/ibm-mas/python-devops) to report issues or ask questions |
0 commit comments