{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"AppCategoryEnum":{"description":"应用分类:\n* `GAME` - 游戏\n* `BUSSINESS_INTELLIGENCE` - 商业智能\n* `SECURE_STORAGE` - 安全与存储\n* `MULTIMEDIA_AND_CODING` - 多媒体与编解码\n* `PROJECT_MANAGEMENT` - 项目管理\n* `PRODUCTIVITY_AND_COLLABORATION` - 生产力与协作\n* `WEB_ADN_APPLICATION` - 网页与应用开发\n* `GRAPHIC_DESIGN` - 图形设计\n* `OTHER` - 其它","enum":["GAME","BUSSINESS_INTELLIGENCE","SECURE_STORAGE","MULTIMEDIA_AND_CODING","PROJECT_MANAGEMENT","PRODUCTIVITY_AND_COLLABORATION","WEB_ADN_APPLICATION","GRAPHIC_DESIGN","OTHER"],"example":"GAME","type":"string"},"BaseResp":{"description":"API响应基类。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00149901","maxLength":16,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","maxLength":255,"minLength":1,"type":"string"}}},"OsTypeEnum":{"description":"系统类型,当前仅支持Windows。\n* `Linux` -\n* `Windows` -\n* `Other` -","enum":["Linux","Windows","Other"],"example":"windows","type":"string"},"UpdateWarehouseAppReq":{"description":"修改应用仓库中的应用信息。","properties":{"app_category":{"$ref":"#/definitions/AppCategoryEnum","description":"应用分类。"},"app_description":{"description":"应用仓库中的应用描述。","example":"XXX公司 XX软件开发应用","maxLength":255,"minLength":0,"type":"string"},"app_icon":{"description":"> - 图片的默认大小当前限制为8KB,即1024 * 8字节。\n> - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。","example":"a2FybWEK","maxLength":10977,"minLength":0,"type":"string"},"app_name":{"description":"应用名称,名称需满足如下规则:\n1. 由中文,英文大小写,数字,_-组成。\n2. 长度范围1~64个字符。","example":"记事本","maxLength":64,"minLength":1,"pattern":"[\\w\\u4e00-\\u9fa5\\u002d_]{1,64}$","type":"string"},"os_type":{"$ref":"#/definitions/OsTypeEnum","description":"操作系统类型。"},"version_id":{"description":"版本号,名称需满足如下规则:\n1. 由可见字符组成。\n2. 长度范围1~64个字符。","example":"3.1.2","pattern":"[\\S]{1,64}","type":"string"},"version_name":{"description":"版本描述,名称需满足如下规则:\n1. 由可见字符组成。\n2. 长度范围1~255个字符。","example":"测试版本","pattern":"[\\S]{1,64}","type":"string"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"a687f462901348abb233200941421f03","info_version":"v1","method":"patch","name":"UpdateWarehouseApp","parameters":{},"paths":{"/v1/{project_id}/app-warehouse/apps/{id}":{"patch":{"description":"修改应用仓库中的指定应用信息","operationId":"UpdateWarehouseApp","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2147483647,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"项目ID。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"应用仓库中的应用记录ID。","in":"path","maxLength":128,"minLength":1,"name":"id","required":true,"type":"string","x-example":"1"},{"description":"修改应用请求体。","in":"body","name":"UpdateWarehouseAppRequestBody","required":true,"schema":{"$ref":"#/definitions/UpdateWarehouseAppReq"}}],"responses":{"200":{"description":"成功响应。","examples":{}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/BaseResp"}},"409":{"description":"操作存在的资源冲突。","schema":{"$ref":"#/definitions/BaseResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/BaseResp"}}},"schemes":["https"],"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"修改应用仓库中的指定应用信息","tags":["AppWareHouse"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"PATCH","name":"wks-appmanager-lb","path":"/v1/{project_id}/app-warehouse/apps/{id}","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"description":"","in":"path","name":"project_id","origin":"request","value":"project_id"},{"description":"","in":"path","name":"id","origin":"request","value":"id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_base","x-apigateway-request-type":"public","x-is-registered":"Y","x-order":3,"x-request-examples-1":{"app_category":"GAME","app_description":"XXX公司 XX软件开发应用","app_icon":"a2FybWEK","app_name":"记事本","os_type":"Windows","version_id":"3.1.2","version_name":"测试版本"},"x-request-examples-url-1":"PATCH /v1/a4da8115c9d8464ead3a38309130523f/app-warehouse/apps/5298741256415","x-support-sdk":"Y"}}},"product_short":"WorkspaceApp","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"修改应用仓库中的指定应用信息","tags":"应用仓库管理","uri":null,"version":"2.0"}