class Fog::Storage::GoogleJSON::Mock

Constants

MockClient

Public Class Methods

new(options = {}) click to toggle source
# File lib/fog/storage/google_json/mock.rb, line 10
def initialize(options = {})
  shared_initialize(options[:google_project], GOOGLE_STORAGE_JSON_API_VERSION, GOOGLE_STORAGE_JSON_BASE_URL)
  @client = MockClient.new('test')
  @storage_json = MockClient.new('test')
  @iam_service = MockClient.new('test')
end

Public Instance Methods

copy_object(_source_bucket, _source_object, _target_bucket, _target_object, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/copy_object.rb, line 24
def copy_object(_source_bucket, _source_object,
                _target_bucket, _target_object, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
delete_bucket(_bucket_name) click to toggle source
# File lib/fog/storage/google_json/requests/delete_bucket.rb, line 15
def delete_bucket(_bucket_name)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
delete_object(_bucket_name, _object_name) click to toggle source
# File lib/fog/storage/google_json/requests/delete_object.rb, line 16
def delete_object(_bucket_name, _object_name)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
delete_object_url(bucket_name, object_name, expires) click to toggle source
# File lib/fog/storage/google_json/requests/delete_object_url.rb, line 26
def delete_object_url(bucket_name, object_name, expires)
  raise ArgumentError.new("bucket_name is required") unless bucket_name
  raise ArgumentError.new("object_name is required") unless object_name
  https_url({
              :headers  => {},
              :host     => @host,
              :method   => "DELETE",
              :path     => "#{bucket_name}/#{object_name}"
            }, expires)
end
get_bucket(_bucket_name, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/get_bucket.rb, line 35
def get_bucket(_bucket_name, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
get_bucket_acl(_bucket_name, _entity) click to toggle source
# File lib/fog/storage/google_json/requests/get_bucket_acl.rb, line 24
def get_bucket_acl(_bucket_name, _entity)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
get_object(_bucket_name, _object_name, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/get_object.rb, line 77
def get_object(_bucket_name, _object_name, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
get_object_acl(_bucket_name, _object_name) click to toggle source
# File lib/fog/storage/google_json/requests/get_object_acl.rb, line 27
def get_object_acl(_bucket_name, _object_name)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
get_object_metadata(_bucket_name, _object_name, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/get_object_metadata.rb, line 24
def get_object_metadata(_bucket_name, _object_name, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
google_access_id() click to toggle source
# File lib/fog/storage/google_json/mock.rb, line 21
def google_access_id
  "my-account@project.iam.gserviceaccount"
end
list_bucket_acl(_bucket_name) click to toggle source
# File lib/fog/storage/google_json/requests/list_bucket_acl.rb, line 18
def list_bucket_acl(_bucket_name)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
list_buckets() click to toggle source
# File lib/fog/storage/google_json/requests/list_buckets.rb, line 22
def list_buckets
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
list_object_acl(_bucket_name, _object_name) click to toggle source
# File lib/fog/storage/google_json/requests/list_object_acl.rb, line 21
def list_object_acl(_bucket_name, _object_name)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
list_objects(_bucket, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/list_objects.rb, line 40
def list_objects(_bucket, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
put_bucket(_bucket_name, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/put_bucket.rb, line 34
def put_bucket(_bucket_name, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
put_bucket_acl(_bucket_name, _acl) click to toggle source
# File lib/fog/storage/google_json/requests/put_bucket_acl.rb, line 21
def put_bucket_acl(_bucket_name, _acl)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
put_object(_bucket_name, _object_name, _data, _options = {}) click to toggle source
# File lib/fog/storage/google_json/requests/put_object.rb, line 94
def put_object(_bucket_name, _object_name, _data, _options = {})
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
put_object_acl(_bucket_name, _object_name, _acl) click to toggle source
# File lib/fog/storage/google_json/requests/put_object_acl.rb, line 27
def put_object_acl(_bucket_name, _object_name, _acl)
  # :no-coverage:
  Fog::Mock.not_implemented
  # :no-coverage:
end
put_object_url(bucket_name, object_name, expires, headers = {}) click to toggle source
# File lib/fog/storage/google_json/requests/put_object_url.rb, line 29
def put_object_url(bucket_name, object_name, expires, headers = {})
  raise ArgumentError.new("bucket_name is required") unless bucket_name
  raise ArgumentError.new("object_name is required") unless object_name
  https_url({
              :headers  => headers,
              :host     => @host,
              :method   => "PUT",
              :path     => "#{bucket_name}/#{object_name}"
            }, expires)
end
signature(_params) click to toggle source
# File lib/fog/storage/google_json/mock.rb, line 17
def signature(_params)
  "foo"
end