View Source COS.Object.Tagging (tencent_cloud_cos v0.1.1)

对象标签功能的实现是通过为对象添加一个键值对形式的标识,协助用户分组管理存储桶中的对象。

腾讯云文档

Link to this section Summary

Link to this section Types

@type tag() :: %{key: binary(), value: binary()}

Link to this section Functions

Link to this function

delete(host, key, opts \\ [])

View Source
@spec delete(
  host :: binary(),
  key :: binary(),
  opts :: [
    query: %{optional(:version_id) => binary()} | nil,
    tesla_opts: Tesla.Env.opts()
  ]
) :: Tesla.Env.t()

删除对象标签 - 腾讯云文档

Link to this function

get(host, key, opts \\ [])

View Source
@spec get(
  host :: binary(),
  key :: binary(),
  opts :: [
    query: %{optional(:version_id) => binary()} | nil,
    tesla_opts: Tesla.Env.opts()
  ]
) :: Tesla.Env.t()

查询对象标签 - 腾讯云文档

Link to this function

put(host, key, map, opts \\ [])

View Source
@spec put(
  host :: binary(),
  key :: binary(),
  body :: %{tag_set: [tag()]},
  opts :: [
    query: %{optional(:version_id) => binary()} | nil,
    tesla_opts: Tesla.Env.opts()
  ]
) :: Tesla.Env.t()

设置对象标签 - 腾讯云文档