{"base_path":"/","components":null,"consumes":"","definitions":{"Privilege":{"properties":{"area_service_id":{"description":"**参数解释**:\n地域服务id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"granted_object_path":{"description":"**参数解释**:\n授权对象路径。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"granted_object_type_id":{"description":"**参数解释**:\n授权对象id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"operations":{"description":"**参数解释**:\n操作权限,多个权限以英文逗号隔开。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","enum":["createrepository","editrepository","restore","deleterepository","physicdelete","restoreall","clearall","deleteorredeploy","downloadorview","import","upload","export"],"type":"string"},"operations_index":{"description":"**参数解释**:\n操作权限索引。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","items":{"format":"int32","type":"integer"},"type":"array"},"project_id":{"description":"**参数解释**:\n项目id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"role_chinese_name":{"description":"**参数解释**:\n角色中文名。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"role_id":{"description":"**参数解释**:\n角色id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"role_name":{"description":"**参数解释**:\n角色名称。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"}},"required":["role_id","project_id","area_service_id","granted_object_path","granted_object_type_id","operations"],"type":"object"},"PrivilegeParam":{"properties":{"area_service_id":{"description":"**参数解释**:\n地域服务id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"granted_object_path":{"description":"**参数解释**:\n授权对象路径。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"granted_object_type_id":{"description":"**参数解释**:\n授权对象id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"},"operations":{"description":"**参数解释**:\n操作权限,多个权限以英文逗号隔开。\n**约束限制**:\n不涉及。\n**取值范围**:\n可选值:createrepository,editrepository,restore,deleterepository,physicdelete,restoreall,clearall,deleteorredeploy,downloadorview,import,upload,export。\n**默认取值**:\n无。\n","enum":["createrepository","editrepository","restore","deleterepository","physicdelete","restoreall","clearall","deleteorredeploy","downloadorview","import","upload","export"],"type":"string"},"project_id":{"description":"**参数解释**:\n项目ID,可以从调用API处获取,也可以从控制台获取。获取方式请参考[获取项目ID](CloudArtifact_api_0015.xml)。\n**约束限制**:\n只能由英文字母、数字组成,且长度为32个字符。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","maxLength":32,"minLength":32,"pattern":"^[a-z0-9]{32,32}$","type":"string"},"role_id":{"description":"**参数解释**:\n角色id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","type":"string"}},"required":["role_id","project_id","area_service_id","granted_object_path","granted_object_type_id","operations"],"type":"object"},"RolePrivilegeV5":{"properties":{"privileges":{"description":"**参数解释**:\n权限信息。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。\n","items":{"$ref":"#/definitions/PrivilegeParam"},"type":"array"}},"required":["privileges"],"type":"object"},"StandarBaseResponseV5":{"properties":{"status":{"description":"**参数解释**:\n请求成功或失败状态。\n**取值范围**:\n- success:请求成功。\n- error:请求失败。","enum":["success","error"],"example":"success","type":"string"},"trace_id":{"description":"**参数解释**:\n请求ID,当前请求唯一标识。\n**取值范围**:\n数字及中划线(-)组成的字符串。","type":"string"}},"type":"object"},"UpdateRepoRolesPrivilegeRes":{"allOf":[{"$ref":"#/definitions/StandarBaseResponseV5"},{"properties":{"result":{"description":"参数解释:\n权限信息。\n取值范围:\n不涉及。","items":{"$ref":"#/definitions/Privilege"},"type":"array"}},"type":"object"}]}},"description":null,"group_id":"12022fbec3164dffbdbcd192875653a8","host":"cloudartifacts-ext.cn-north-4.myhuaweicloud.com","id":"c0027706221d48f9828f66860f9c7ca2","info_version":"v2","method":"put","name":"UpdateRepoRolesPrivilege","parameters":{},"paths":{"/cloudartifact/v5/repositories/{role_id}/privileges":{"put":{"description":"根据角色ID更新指定角色的权限,如创建仓库、编辑仓库、上传、下载、导入和导出等权限,实现权限的集中管理和自动化分配。","operationId":"UpdateRepoRolesPrivilege","parameters":[{"description":"**参数解释**:\n角色id。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","in":"path","name":"role_id","required":true,"type":"string"},{"description":"**参数解释**:\n权限信息。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","in":"body","name":"UpdateRepoRolesPrivilegeRequestBody","required":true,"schema":{"$ref":"#/definitions/RolePrivilegeV5"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/UpdateRepoRolesPrivilegeRes"}}},"security":[{"apig-auth-iam":[]}],"summary":"更新角色权限","tags":["用户管理"],"x-api-framework":"RestfulAPI","x-api-highrisk":"N","x-api-position":"Region_ZONE","x-api-type":"open-api","x-api-user":"IAM_User","x-is-registered":"Y","x-open-region-cloud":"hws,hws_hk","x-sec-auditlog":"N","x-sec-upload-download":0,"x-support-sdk":"Y"}}},"product_short":"CodeArtsArtifact","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-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-new":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"IAM_NEW"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"},"apig-auth-iam-none-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM_NONE"},"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"}