@@ -289,7 +289,8 @@ public function getBucketLifecycleRules($bucket)
289289 * 删除bucket生命规则
290290 *
291291 * @param $bucket 空间名
292- * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,只能为字母、数字、下划线
292+ * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,
293+ * 只能为字母、数字、下划线()
293294 * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
294295 */
295296 public function deleteBucketLifecycleRule ($ bucket , $ name )
@@ -310,11 +311,12 @@ public function deleteBucketLifecycleRule($bucket, $name)
310311 * 增加bucket事件通知规则
311312 *
312313 * @param $bucket 空间名
313- * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,只能为字母、数字、下划线
314+ * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,
315+ * 只能为字母、数字、下划线()
314316 * @param $prefix 同一个 bucket 里面前缀不能重复
315317 * @param $suffix 可选,文件配置的后缀
316- * @param $event 事件类型,可以指定多个,包括 put,mkfile,delete,copy,move,append,disable,
317- * enable,deleteMarkerCreate
318+ * @param $event 事件类型,可以指定多个,包括 put,mkfile,delete,copy,move,append,
319+ * disable, enable,deleteMarkerCreate
318320 * @param $callbackURL 通知URL,可以指定多个,失败依次重试
319321 * @param $access_key 可选,设置的话会对通知请求用对应的ak、sk进行签名
320322 * @param $host 可选,通知请求的host
@@ -365,7 +367,8 @@ public function putBucketEvent(
365367 * 更新bucket事件通知规则
366368 *
367369 * @param $bucket 空间名
368- * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,只能为字母、数字、下划线
370+ * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,
371+ * 只能为字母、数字、下划线()
369372 * @param $prefix 同一个 bucket 里面前缀不能重复
370373 * @param $suffix 可选,文件配置的后缀
371374 * @param $event 事件类型,可以指定多个,包括 put,mkfile,delete,copy,move,append,disable,
@@ -433,7 +436,8 @@ public function getBucketEvents($bucket)
433436 * 删除bucket事件通知规则
434437 *
435438 * @param $bucket 空间名
436- * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,只能为字母、数字、下划线
439+ * @param $name 规则名称 bucket 内唯一,长度小于50,不能为空,
440+ * 只能为字母、数字、下划线
437441 * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
438442 */
439443 public function deleteBucketEvent ($ bucket , $ name )
@@ -455,14 +459,17 @@ public function deleteBucketEvent($bucket, $name)
455459 * 对于同一个域名如果设置了多条规则,那么按顺序使用第一条匹配的规则去生成返回值。
456460 * 对于简单跨域请求,只匹配 Origin;
457461 * 对于预检请求, 需要匹配 Origin、AllowedMethod、AllowedHeader;
458- * allowed_orgin: 允许的域名。必填;支持通配符*;*表示全部匹配;只有第一个*生效;需要设置"Scheme";大小写敏感。例如
462+ * allowed_orgin: 允许的域名。必填;支持通配符*;*表示全部匹配;只有第一个*生效;
463+ * 需要设置"Scheme";大小写敏感。例如
459464 * 规则:http://*.abc.*.com 请求:"http://test.abc.test.com" 结果:不通过
460465 * 规则:"http://abc.com" 请求:"https://abc.com"/"abc.com" 结果:不通过
461466 * 规则:"abc.com" 请求:"http://abc.com" 结果:不通过
462467 * allowed_method: 允许的方法。必填;不支持通配符;大小写不敏感;
463- * allowed_header: 允许的header。选填;支持通配符*,但只能是单独的*,表示允许全部header,其他*不生效;
468+ * allowed_header: 允许的header。选填;支持通配符*,
469+ * 但只能是单独的*,表示允许全部header,其他*不生效;
464470 * 空则不允许任何header;大小写不敏感;
465- * exposed_header: 暴露的header。选填;不支持通配符;X-Log, X-Reqid是默认会暴露的两个header;
471+ * exposed_header: 暴露的header。选填;不支持通配符;
472+ * X-Log, X-Reqid是默认会暴露的两个header;
466473 * 其他的header如果没有设置,则不会暴露;大小写不敏感;
467474 * max_age: 结果可以缓存的时间。选填;空则不缓存;
468475 * allowed_credentials:该配置不支持设置,默认为true。
0 commit comments