Aliyun.Oss.Bucket.Replication.get_location

You're seeing just the function get_location, go back to Aliyun.Oss.Bucket.Replication module for more information.
Link to this function

get_location(bucket)

Specs

get_location(String.t()) ::
  {:error, error()} | {:ok, Aliyun.Oss.Client.Response.t()}

GetBucketReplicationLocation接口用于获取可复制到的目标存储空间(Bucket)所在的地域。您可以根据返回结果决定将源Bucket的数据复制到哪个地域。

Examples

iex> Aliyun.Oss.Bucket.Replication.get_location("some-bucket")
{:ok, %Aliyun.Oss.Client.Response{
  data: %{
    "ReplicationLocation" => %{
      "Location" => ["oss-ap-northeast-1", "oss-ap-south-1",
        "oss-ap-southeast-1", "oss-ap-southeast-2", "oss-ap-southeast-3",
        "oss-ap-southeast-5", "oss-cn-beijing", "oss-cn-chengdu",
        "oss-cn-guangzhou", "oss-cn-hangzhou", "oss-cn-heyuan",
        "oss-cn-hongkong", "oss-cn-huhehaote", "oss-cn-qingdao",
        "oss-cn-shanghai", "oss-cn-wulanchabu", "oss-cn-zhangjiakou",
        "oss-eu-central-1", "oss-eu-west-1", "oss-me-east-1", "oss-rus-west-1",
        "oss-us-east-1", "oss-us-west-1"],
      "LocationTransferTypeConstraint" => %{
        "LocationTransferType" => [
          %{
            "Location" => "oss-cn-hongkong",
            "TransferTypes" => %{"Type" => "oss_acc"}
          },
          # ...
        ]
      }
    }
  },
  headers: [
    {"Date", "Wed, 05 Dec 2018 02:34:57 GMT"},
    ...
  ]
}}