Aliyun.Oss.Object.Tagging (aliyun_oss v1.0.0)
Object Tagging 相关操作
Link to this section Summary
Functions
通过DeleteObjectTagging删除指定对象的标签。
通过GetObjectTagging接口获取对象的标签信息。
通过PutObjectTagging接口设置或更新对象的标签(Object Tagging)。
Link to this section Types
Link to this type
error()
Specs
Link to this section Functions
Link to this function
delete(bucket, object)
Specs
通过DeleteObjectTagging删除指定对象的标签。
Examples
iex> Aliyun.Oss.Object.Tagging.delete("some-bucket", "some-object")
{:ok, %Aliyun.Oss.Client.Response{
data: "",
headers: [
{"Server", "AliyunOSS"},
{"Date", "Wed, 05 Dec 2018 02:34:57 GMT"},
...
]
}
}
Link to this function
get(bucket, object)
Specs
通过GetObjectTagging接口获取对象的标签信息。
Examples
iex> Aliyun.Oss.Object.Tagging.get("some-bucket", "some-object")
{:ok, %Aliyun.Oss.Client.Response{
data: %{"Tagging" => %{"TagSet" => [%{"Key" => "key", "Value" => "value"}]}},
headers: [
{"Server", "AliyunOSS"},
{"Date", "Fri, 01 Mar 2019 06:26:07 GMT"},
{"Content-Type", "text/plain"},
{"Content-Length", "0"},
{"Connection", "keep-alive"},
{"x-oss-request-id", "5C7000000000000000000000"},
{"Last-Modified", "Fri, 01 Mar 2019 06:23:13 GMT"},
{"ETag", ""6751C000000000000000000000000000""},
{"x-oss-symlink-target", "test.txt"},
{"x-oss-server-time", "1"}
]
}
}
Link to this function
put(bucket, object, tags)
Specs
put(String.t(), String.t(), [{any(), any()}, ...]) :: {:error, error()} | {:ok, Aliyun.Oss.Client.Response.t()}
通过PutObjectTagging接口设置或更新对象的标签(Object Tagging)。
Examples
iex> Aliyun.Oss.Object.Tagging.put("some-bucket", "some-object", [{"key1", "value1"}, {:key2, "value2}])
{:ok, %Aliyun.Oss.Client.Response{
data: "",
headers: [
{"Server", "AliyunOSS"},
{"Date", "Wed, 05 Dec 2018 02:34:57 GMT"},
...
]
}
}