{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"App":{"description":"应用信息。","properties":{"app_group_id":{"description":"应用组标识Id。","example":"1","readOnly":true,"type":"string"},"command_param":{"description":"启动命令行参数。","example":"","readOnly":true,"type":"string"},"description":{"description":"应用描述。","example":"Google浏览器","readOnly":true,"type":"string"},"execute_path":{"description":"执行路径。","example":"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe","readOnly":true,"type":"string"},"icon_index":{"description":"应用图标的索引。","example":1,"readOnly":true,"type":"integer"},"icon_path":{"description":"应用图标的路径。","example":"C:\\Users\\zhangSan\\AppData\\Local\\Google\\Chrome.png","readOnly":true,"type":"string"},"icon_url":{"description":"图标url。","example":"https://workspace*****.obs.cn-north-**.myhuaweicloud.com/1.png","readOnly":true,"type":"string"},"id":{"description":"应用ID。","example":"1","readOnly":true,"type":"string"},"name":{"description":"应用名称。","example":"Chrome","readOnly":true,"type":"string"},"publish_at":{"description":"发布时间。","example":"2022-03-07T10:40:43.858Z","format":"date-time","readOnly":true,"type":"string"},"publishable":{"description":"是否可发布应用:\n- true: 可发布。\n- false: 不可发布。","example":false,"readOnly":true,"type":"boolean"},"publisher":{"description":"应用发布者。","example":"Google Chrome","readOnly":true,"type":"string"},"sandbox_enable":{"description":"是否使用沙箱模式运行,取值为:\n- false: 表示不以沙箱模式运行。\n- true: 表示以沙箱模式运行。","example":false,"readOnly":true,"type":"boolean"},"source_type":{"description":"应用类型:\n- '1':系统内置应用\n- '2':镜像应用\n- '3':自定义应用","example":2,"readOnly":true,"type":"integer"},"state":{"$ref":"#/definitions/AppStateEnum"},"tenant_id":{"description":"所在的租户ID。","example":"2b31ed520xxxxxxebedb6e57xxxxxxxx","readOnly":true,"type":"string"},"version":{"description":"应用版本号。","example":"99.0.4844.51","readOnly":true,"type":"string"},"work_path":{"description":"应用工作目录。","example":"C:\\Users\\zhangSan\\AppData\\Local\\Google\\Chrome","readOnly":true,"type":"string"}}},"AppStateEnum":{"description":"应用状态:\n* `NORMAL` - 正常状态。\n* `FORBIDDEN` - 禁用状态。","enum":["NORMAL","FORBIDDEN"],"example":"NORMAL","pattern":"^(NORMAL|FORBIDDEN)?$","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"}}},"UpdateAppReq":{"description":"修改应用属性(注意非空字段的限制,操作时会使用入参的字段直接覆盖已有字段的值)。","properties":{"command_param":{"description":"启动命令行参数。","example":"","maxLength":2048,"minLength":0,"type":"string"},"description":{"description":"应用描述。","example":"Google浏览器","maxLength":255,"minLength":0,"type":"string"},"execute_path":{"description":"执行路径。","example":"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe","maxLength":255,"minLength":0,"type":"string"},"name":{"description":"应用名称,名称需满足如下规则:\n1. 名称允许可见字符或空格,不可为全空格。\n2. 长度1~64个字符。","example":"Chrome","pattern":"^(?! +$)[\\S ]{1,64}$","type":"string"},"sandbox_enable":{"description":"是否使用沙箱模式运行,取值为:\n- false: 表示不以沙箱模式运行\n- true: 表示以沙箱模式运行","example":false,"type":"boolean"},"state":{"$ref":"#/definitions/AppStateEnum","description":"应用状态(正常、禁用),只能修改正常的为禁用或者修改禁用状态的为正常。"},"version":{"description":"应用版本号。","example":"99.0.4844.51","maxLength":255,"minLength":0,"type":"string"},"work_path":{"description":"应用工作目录。","example":"C:\\Users\\zhangSan\\AppData\\Local\\Google\\Chrome","maxLength":255,"minLength":0,"type":"string"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"982651e5d8f84ce9874273dae092323c","info_version":"v1","method":"patch","name":"UpdateApp","parameters":{},"paths":{"/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}":{"patch":{"description":"编辑修改应用信息。","operationId":"UpdateApp","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":"app_group_id","required":true,"type":"string","x-example":"1"},{"description":"应用ID。","in":"path","maxLength":128,"minLength":1,"name":"app_id","required":true,"type":"string","x-example":"1"},{"description":"update app request body.","in":"body","name":"UpdateAppRequestBody","required":true,"schema":{"$ref":"#/definitions/UpdateAppReq"}}],"responses":{"200":{"description":"成功响应。","examples":{"application/json":{"app_group_id":"656582710889807872","command_param":"","description":"","execute_path":"C:\\Program Files\\7-Zip\\7zFM.exe","icon_index":0,"icon_path":"C:\\Program Files\\7-Zip\\7zFM.exe","id":"656599335839993860","name":"7-Zip File Manager","publish_at":"2024-01-15T08:39:56.265Z","publisher":"Igor Pavlov","sandbox_enable":false,"source_type":2,"state":"NORMAL","tenant_id":"26a0420e9e284569a23f1b2f7d9b5011","version":"19.0.0.1","work_path":"C:\\Program Files\\7-Zip"}},"schema":{"$ref":"#/definitions/App"}},"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":["Application"],"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-groups/{app_group_id}/apps/{app_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":"app_group_id","origin":"request","value":"app_group_id"},{"description":"","in":"path","name":"app_id","origin":"request","value":"app_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":{"command_param":"","description":"修改应用","execute_path":"C:\\Program Files\\7-Zip\\7zFM.exe","name":"7-Zip File Manager","sandbox_enable":false,"version":"19.0.0.1","work_path":"C:\\Program Files\\7-Zip"},"x-request-examples-url-1":"PATCH /v1/a4da8115c9d8464ead3a38309130523f/app-groups/656582710889807872/apps/656599335839993860","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"}