Skip to content

Conversation

@sureshanaparti
Copy link
Contributor

@sureshanaparti sureshanaparti commented Jan 19, 2026

Description

This PR improves the API docs/generation and has some code improvements/cleanup.

  • Since release added to the API, Request and Response parameters.

  • Categories list (known_categories) updated to 185 elements (from 228 elements), reduces the overall docs generation time.

  • Re-mapped APIs to proper category. (Eg. changeBgpPeersForNetwork to 'BGP Peer, listVsphereStoragePolicyCompatiblePools to vSphere Storage Policies, listStorageTags to Storage Pool)

  • Add new Categories (same as existing Tungsten, NSX, Netris)

    • OpenDaylight Controller
    • Cisco Nexus VSM
    • Elastistor
  • Update Category

    • 'Misc Network Service Providers' to 'Stratosphere SSP'
  • Removed Categories

    • 'Import VM Task' - API listImportVmTasks moved to 'Virtual Machine' Category (same as other related APIs importVm, importUnmanagedInstance)
    • 'Pool' - API listElastistorPool moved to 'Elastistor' Category and API listVsphereStoragePolicyCompatiblePools moved to 'vSphere Storage Policies' Category.
    • 'Misc' - API listElastistorInterface moved to 'Elastistor' Category
    • 'Limit' - API updateResourceCount moved to 'Resource Limit' Category.

(with this changes, total 104 categories now, earlier was 105).

  • Cleanup un-used methods / files.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

Current API docs: https://cloudstack.apache.org/api/apidocs-4.22/

New API docs:

CloudStack API Reference - Updated.pdf

updateVirtualMachine API =>

updateVirtualMachine_API ... updateVirtualMachine_API_Response

migrateVirtualMachine API =>

migrateVirtualMachine_API

unmanageVirtualMachine API =>

unmanageVirtualMachine_API

How Has This Been Tested?

Verified the generated API docs index page and some API pages.

How did you try to break this feature and the system with this change?

- Proper category alignments during API docs generation
- Since attribute for API, Request & Response parameters
- Code improvements/cleanup
@boring-cyborg boring-cyborg bot added component:api component:networking Python Warning... Python code Ahead! labels Jan 19, 2026
@sureshanaparti sureshanaparti added this to the 4.23.0 milestone Jan 19, 2026
@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.85%. Comparing base (04b58ac) to head (5482fdf).

Files with missing lines Patch % Lines
...c/main/java/com/cloud/api/doc/ApiXmlDocWriter.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main   #12467   +/-   ##
=========================================
  Coverage     17.84%   17.85%           
  Complexity    15983    15983           
=========================================
  Files          5929     5929           
  Lines        531084   531039   -45     
  Branches      64914    64909    -5     
=========================================
  Hits          94795    94795           
+ Misses       425675   425630   -45     
  Partials      10614    10614           
Flag Coverage Δ
uitests 3.58% <ø> (ø)
unittests 18.94% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 16428

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube Cloud

@DaanHoogland
Copy link
Contributor

thnx @sureshanaparti , looks good and I’ll give it a test swing. Does this not apply to v20 and 22 as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants