Sha256: 940c3aad108d11e6acfc16a85aa118d710cc410a721c62c1b20e72aa0ed2534a
Contents?: true
Size: 866 Bytes
Versions: 5
Compression:
Stored size: 866 Bytes
Contents
# frozen_string_literal: true module Fog module Aliyun class Storage class Real def list_buckets(options = {}) prefix = options[:prefix] marker = options[:marker] maxKeys = options[:maxKeys] path = '' if prefix path += '?prefix=' + prefix path += '&marker=' + marker if marker path += '&max-keys=' + maxKeys if maxKeys elsif marker path += '?marker=' + marker path += '&max-keys=' + maxKeys if maxKeys elsif maxKeys path += '?max-keys=' + maxKeys end ret = request( expects: [200, 203], method: 'GET', path: path ) xml = ret.data[:body] XmlSimple.xml_in(xml)['Buckets'][0] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems