huawei-cloud-api-definitions-CSS 0.1.20240122

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"LoadCustomThesaurusReq":{"properties":{"bucketName":{"description":"词库文件存放的OBS桶(桶类型必须为标准存储或者低频存储,不支持归档存储)。","example":"test-bucket","type":"string"},"mainObject":{"description":"主词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持100M。\nmainObject, stopObject, synonymObject三个参数至少要填写一个。\n\n>一次只能加载一个主词库,不支持同时加载多个主词库。","example":"word/main.dic","type":"string"},"stopObject":{"description":"停词词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持20M。\n\nmainObject, stopObject, synonymObject三个参数至少要填写一个。","example":"word/stop.dic","type":"string"},"synonymObject":{"description":"同义词词库文件,必须为UTF-8无BOM编码的文本文件,一行一组分词,文件大小最大支持20M。\n\nmainObject, stopObject, synonymObject三个参数至少要填写一个。","example":"word/synonym.dic","type":"string"}},"required":["bucketName"]}},"description":null,"group_id":"c917c7a19aa04328b7e47a1def0e0acd","host":"css.cn-north-4.myhuaweicloud.com","id":"41403bf518fb4dc98d805ca9dbaddfea","info_version":"v1","method":"post","name":"CreateLoadIkThesaurus","parameters":{},"paths":{"/v1.0/{project_id}/clusters/{cluster_id}/thesaurus":{"post":{"description":"该接口用于加载存放于OBS的自定义词库。","operationId":"CreateLoadIkThesaurus","parameters":[{"description":"项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"6204a5bd270343b5885144cf9c8c158d"},{"description":"指定配置自定义词库的集群ID。","in":"path","name":"cluster_id","required":true,"type":"string","x-example":"ea244205-d641-45d9-9dcb-ab2236bcd07e"},{"in":"body","name":"LoadCustomThesaurusReq","required":true,"schema":{"$ref":"#/definitions/LoadCustomThesaurusReq"}}],"responses":{"200":{"description":"请求已成功。"},"403":{"description":"请求被拒绝访问。\n\n返回该状态码,表明请求能够到达服务端,且服务端能够理解用户请求,但是拒绝做更多的事情,因为该请求被设置为拒绝访问,建议直接修改该请求,不要重试该请求。"},"500":{"description":"表明服务端能被请求访问到,但是不能理解用户的请求。"}},"summary":"加载自定义词库","tags":["词库管理接口"],"x-apiexplorer-hide":"N","x-is-registered":"Y","x-open-region-cloud":"only_cn,hc,hk","x-publishpath":"","x-request-examples-1":{"bucketName":"test-bucket","mainObject":"word/main.txt","stopObject":"word/stop.txt","synonymObject":"word/synonym.txt"},"x-request-examples-description-1":"开启并配置词库信息。","x-request-examples-text-1":{"bucketName":"test-bucket","mainObject":"word/main.txt","stopObject":"word/stop.txt","synonymObject":"word/synonym.txt"},"x-request-examples-url":"POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/thesaurus","x-request-examples-url-1":"POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/4f3deec3-efa8-4598-bf91-560aad1377a3/thesaurus","x-support-sdk":"Y"}}},"product_short":"CSS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"加载自定义词库","tags":"词库管理接口","uri":null,"version":"2.0"}