{"modulePath":"github.com/volcengine/volcengine-cli","version":"v1.2.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nCommand generate\\_param\\_descriptions fetches OpenAPI parameter descriptions, examples, and requirements for every service/version in the SDK metadata inventory, and writes asset/paramdescriptions/params.json. build\\_asset.sh then runs go-bindata into package paramdescriptions (asset/paramdescriptions/bindata.go) — separate from asset/asset.go (metadata + explorer only).\n\nInventory resolution (same idea as generate\\_explorer\\_descriptions):\n\n 1. \\--metadata-dir (default: \\\u003crepo\u003e/volcengine-sdk-metadata/metadata)\n 2. fallback: parse paths in asset/asset.go\n\nData source (public Explorer APIs, no DB):\n\n  - GET /api/common/explorer/services        → canonical ServiceCode casing\n  - GET /api/common/explorer/apis            → action list per service/version\n  - GET /api/common/explorer/api-swagger     → param descriptions per action\n\nServiceCode casing: metadata inventory dirs are lowercased, but api-swagger is case-sensitive (cdn≠CDN, acep≠ACEP, advdefence≠AdvDefence). Requests use the canonical code from /services; params.json keys stay inventory lower for CLI join.\n\nRate limiting: serial requests with --delay (default 150ms). Retries on 429/5xx.\n\nUsage:\n\n\tgo run ./scripts/generate_param_descriptions\n\tgo run ./scripts/generate_param_descriptions --service ecs --version 2020-04-01\n\tgo run ./scripts/generate_param_descriptions --delay 200ms --lang zh\n\tgo run ./scripts/generate_param_descriptions --strict\n\tgo run ./scripts/generate_param_descriptions --prune-missing\n\tgo generate ./asset/paramdescriptions   # after writing params.json\n\nWrite policy: merge successful fetches into any existing --out file so partial runs (--service / --max-actions / skipped HTTP errors) do not wipe unscanned actions. Use --prune-missing to drop previous service/version keys absent from inventory; --strict refuses to write when any fetch was skipped.\n\nFull asset rebuild (metadata + explorer + params + bindata):\n\n\tbash build_asset.sh \u003cmetadata-git-url\u003e [branch]\n\n","path":"github.com/volcengine/volcengine-cli/scripts/generate_param_descriptions","name":"main","synopsis":"Command generate_param_descriptions fetches OpenAPI parameter descriptions, examples, and requirements for every service/version in the SDK metadata inventory, and writes asset/paramdescriptions/params.json.","isRedistributable":true}
