huawei-cloud-api-definitions-CodeArtsArtifact 0.1.20260313

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"BatchDeleteTrashesResponseBody":{"allOf":[{"$ref":"#/definitions/StandarBaseResponseV5"},{"properties":{"result":{"$ref":"#/definitions/TrashcanResultData","description":"**参数解释**:\n批量操作结果。\n**取值范围**:\n不涉及。\n"}},"type":"object"}]},"IDETrashArtifactModel":{"description":"回收站信息","properties":{"format":{"description":"**参数解释**:\n制品类型。\n**约束限制**:\n不涉及。\n**取值范围**:\nmaven2|docker|npm|go|pypi|rpm|composer|debian|conan|nuget|docker2|cocoapods|ohpm|generic。\n**默认取值**:\n无。","example":"rpm","type":"string"},"id":{"description":"**参数解释**:\n仓库id,格式为{region}_{domainId}_{format}_{sequence}。可以从私有依赖库首页->仓库概览->仓库地址 url 中获取,最后两个\"/\"中间的字符串即为仓库id。\n**约束限制**:\n根据仓库id格式中region, domainId需要为有效值,format有效值为:npm|go|pypi|rpm|composer|maven|debian|conan|nuget|docker2|cocoapods|ohpm, sequence取值根据套餐不同有不同上限值。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","example":"xx-xxxxx-x_5a775fdcb14f4431b6c0015618140bc3_rpm_2","type":"string"},"status":{"description":"**参数解释**:\n当前仓库状态。\n**约束限制**:\n不涉及。\n**取值范围**:\nactive:正常。\ntrash:废弃。\ndelete:删除。\n**默认取值**:\n无。","example":"active","type":"string"},"uri":{"description":"**参数解释**:\n待还原的仓库路径。\n**约束限制**:\n不涉及。\n**取值范围**:\n不涉及。\n**默认取值**:\n无。","example":"xx-xxxxx-x_5a775fdcb14f4431b6c0015618140bc3_rpm_2/1/2","type":"string"}},"required":["id","format","status","uri"],"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"},"StandarErrorResponseV5":{"properties":{"error_code":{"description":"错误代码","type":"string"},"error_msg":{"description":"错误信息","type":"string"},"status":{"description":"结果状态","type":"string"},"trace_id":{"description":"请求id","type":"string"}},"type":"object"},"TrashcanResultData":{"properties":{"failedMessages":{"description":"**参数解释**:\n失败原因。\n**取值范围**:\n不涉及。\n","items":{"type":"string"},"type":"array"},"failedNum":{"description":"**参数解释**:\n失败数目。\n**取值范围**:\n不涉及。\n","format":"int32","type":"integer"},"successNum":{"description":"**参数解释**:\n成功数目。\n**取值范围**:\n不涉及。\n","format":"int32","type":"integer"}},"type":"object"}},"description":null,"group_id":"12022fbec3164dffbdbcd192875653a8","host":"cloudartifacts-ext.cn-north-4.myhuaweicloud.com","id":"6e898cb36eef42d2aa4f996b279631af","info_version":"v2","method":"put","name":"BatchRestoreRepo","parameters":{},"paths":{"/cloudartifact/v5/trashes":{"put":{"description":"批量还原回收站","operationId":"BatchRestoreRepo","parameters":[{"description":"参数","in":"body","name":"BatchRestoreRepoRequestBody","required":true,"schema":{"items":{"$ref":"#/definitions/IDETrashArtifactModel"},"type":"array"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BatchDeleteTrashesResponseBody"}},"401":{"description":"UNAUTHORIZED","schema":{"$ref":"#/definitions/StandarErrorResponseV5"}}},"security":[{"apig-auth-iam":[]}],"summary":"批量还原回收站","tags":["回收站"],"x-api-framework":"RestfulAPI","x-api-position":"管理面","x-api-type":"open-api","x-api-user":"IAM普通租户","x-is-registered":"Y","x-open-region-cloud":"hws,hws_hk","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"}