我使用以下代码创建了一个带有 DM 的存储桶
resources:
- type: storage.v1.bucket
name: test-bucket
properties:
project: my-project
name: test-bucket
现在,当尝试在存储桶 (test-bucket-name\test) 中创建文件夹结构时,出现错误。请参考下面的示例代码和错误消息。
resources:
- type: storage.v1.object
name: test
properties:
project: my-project
name: test
bucket: test-bucket
错误:
message: '{"ResourceType":"storage.v1.object","ResourceErrorCode":"400","Resou
rceErrorMessage":{"code":400,"errors":[{"domain":"global","message":"Upload
requests must include an uploadType URL parameter and a URL path beginning w
ith
/upload/","reason":"wrongUrlForUpload","extendedHelp":"https://cloud.google.
com/storage/docs/json_api/v1/how-tos/upload"}],"message":"Upload
requests must include an uploadType URL parameter and a URL path beginning w
ith
/upload/","statusMessage":"Bad Request","requestPath":"https://www.googleapi
s.com/storage/v1/b/test-bucket/o","httpMethod":"POST"}}'
我试图设置 urlpath 属性但没有用。
谁能指导我这个。