DevStar-Devstar 模板生成代码:请求参数
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token。 通过调用 IAM 服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
X-Language |
否 |
String |
语言类型,缺省值为“zh-cn”。 枚举值:
|
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
application_name |
否 |
String |
应用名称 |
template_id |
是 |
String |
任务依赖的模板id |
project_name |
否 |
String |
应用名称 |
repo_type |
否 |
Integer |
应用代码生成后的地址类型,目前支持0:CodeArts Repo地址和1:压缩包下载地址 |
properties |
否 |
Object |
应用的动态参数json |
template_dependencies |
否 |
Array of strings |
模板 dependency ID 集合 |
repo_info |
否 |
RepositoryInfo object |
仓库信息 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
name |
否 |
String |
代码仓的名称。 |
description |
否 |
String |
代码仓描述。 |
project_id |
否 |
String |
项目id。 |
region_id |
否 |
String |
区域id。 |
gitignore |
否 |
String |
根据编程语言生成gitignore文件。 |
member_permission |
否 |
Integer |
是否允许项目内成员访问仓库:
|
readme_permission |
否 |
Integer |
是否允许生成README文件:
|
visibility_level |
否 |
Integer |
是否公开:
|
license_id |
否 |
Integer |
开源许可证id (0:默认)。 |