Module: Fog::Google::StorageXML::Utils

Included in:
Mock, Real
Defined in:
lib/fog/google/storage/storage_xml/utils.rb

Constant Summary collapse

VALID_ACLS =
%w(
  authenticated-read
  bucket-owner-full-control
  bucket-owner-read
  private
  project-private
  public-read
  public-read-write
).freeze

Instance Method Summary collapse

Instance Method Details

#http_url(params, expires) ⇒ Object



18
19
20
# File 'lib/fog/google/storage/storage_xml/utils.rb', line 18

def http_url(params, expires)
  "http://#{host_path_query(params, expires)}"
end

#https_url(params, expires) ⇒ Object



22
23
24
# File 'lib/fog/google/storage/storage_xml/utils.rb', line 22

def https_url(params, expires)
  "https://#{host_path_query(params, expires)}"
end

#url(params, expires) ⇒ Object



26
27
28
29
# File 'lib/fog/google/storage/storage_xml/utils.rb', line 26

def url(params, expires)
  Fog::Logger.deprecation("Fog::Google::Storage => #url is deprecated, use #https_url instead [light_black](#{caller.first})[/]")
  https_url(params, expires)
end