Class: Fog::Storage::GoogleJSON::Mock
- Inherits:
-
Object
- Object
- Fog::Storage::GoogleJSON::Mock
show all
- Includes:
- Google::Shared, GetObjectHttpUrl, GetObjectHttpsUrl, Utils
- Defined in:
- lib/fog/storage/google_json/requests/get_object_url.rb,
lib/fog/storage/google_json/mock.rb,
lib/fog/storage/google_json/requests/get_bucket.rb,
lib/fog/storage/google_json/requests/get_object.rb,
lib/fog/storage/google_json/requests/put_bucket.rb,
lib/fog/storage/google_json/requests/put_object.rb,
lib/fog/storage/google_json/requests/copy_object.rb,
lib/fog/storage/google_json/requests/list_buckets.rb,
lib/fog/storage/google_json/requests/list_objects.rb,
lib/fog/storage/google_json/requests/delete_bucket.rb,
lib/fog/storage/google_json/requests/delete_object.rb,
lib/fog/storage/google_json/requests/get_bucket_acl.rb,
lib/fog/storage/google_json/requests/get_object_acl.rb,
lib/fog/storage/google_json/requests/put_bucket_acl.rb,
lib/fog/storage/google_json/requests/put_object_acl.rb,
lib/fog/storage/google_json/requests/put_object_url.rb,
lib/fog/storage/google_json/requests/list_bucket_acl.rb,
lib/fog/storage/google_json/requests/list_object_acl.rb,
lib/fog/storage/google_json/requests/delete_object_url.rb,
lib/fog/storage/google_json/requests/get_object_http_url.rb,
lib/fog/storage/google_json/requests/get_object_metadata.rb,
lib/fog/storage/google_json/requests/get_object_https_url.rb
Overview
Defined Under Namespace
Classes: MockClient
Instance Attribute Summary
#api_url, #api_version, #project
Instance Method Summary
collapse
-
#copy_object(_source_bucket, _source_object, _target_bucket, _target_object, _options = {}) ⇒ Object
-
#delete_bucket(_bucket_name) ⇒ Object
-
#delete_object(_bucket_name, _object_name) ⇒ Object
-
#delete_object_url(bucket_name, object_name, expires) ⇒ Object
-
#get_bucket(_bucket_name, _options = {}) ⇒ Object
-
#get_bucket_acl(_bucket_name, _entity) ⇒ Object
-
#get_object(_bucket_name, _object_name, _options = {}) ⇒ Object
-
#get_object_acl(_bucket_name, _object_name) ⇒ Object
-
#get_object_metadata(_bucket_name, _object_name, _options = {}) ⇒ Object
-
#get_object_url(bucket_name, object_name, expires, options = {}) ⇒ Object
-
#google_access_id ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
-
#list_bucket_acl(_bucket_name) ⇒ Object
-
#list_buckets ⇒ Object
-
#list_object_acl(_bucket_name, _object_name) ⇒ Object
-
#list_objects(_bucket, _options = {}) ⇒ Object
-
#put_bucket(_bucket_name, _options = {}) ⇒ Object
-
#put_bucket_acl(_bucket_name, _acl) ⇒ Object
-
#put_object(_bucket_name, _object_name, _data, _options = {}) ⇒ Object
-
#put_object_acl(_bucket_name, _object_name, _acl) ⇒ Object
-
#put_object_url(bucket_name, object_name, expires, headers = {}) ⇒ Object
-
#signature(_params) ⇒ Object
#get_object_https_url
#get_object_http_url
#apply_client_options, #build_excon_response, #initialize_google_client, #request, #shared_initialize
Methods included from Utils
#http_url, #https_url, #url
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
Instance Method Details
#copy_object(_source_bucket, _source_object, _target_bucket, _target_object, _options = {}) ⇒ Object
25
26
27
28
29
30
|
# File 'lib/fog/storage/google_json/requests/copy_object.rb', line 25
def copy_object(_source_bucket, _source_object,
_target_bucket, _target_object, _options = {})
Fog::Mock.not_implemented
end
|
#delete_bucket(_bucket_name) ⇒ Object
15
16
17
18
19
|
# File 'lib/fog/storage/google_json/requests/delete_bucket.rb', line 15
def delete_bucket(_bucket_name)
Fog::Mock.not_implemented
end
|
#delete_object(_bucket_name, _object_name) ⇒ Object
16
17
18
19
20
|
# File 'lib/fog/storage/google_json/requests/delete_object.rb', line 16
def delete_object(_bucket_name, _object_name)
Fog::Mock.not_implemented
end
|
#delete_object_url(bucket_name, object_name, expires) ⇒ Object
26
27
28
29
30
31
32
33
34
35
|
# 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 = {}) ⇒ Object
35
36
37
38
39
|
# File 'lib/fog/storage/google_json/requests/get_bucket.rb', line 35
def get_bucket(_bucket_name, _options = {})
Fog::Mock.not_implemented
end
|
#get_bucket_acl(_bucket_name, _entity) ⇒ Object
24
25
26
27
28
|
# File 'lib/fog/storage/google_json/requests/get_bucket_acl.rb', line 24
def get_bucket_acl(_bucket_name, _entity)
Fog::Mock.not_implemented
end
|
#get_object(_bucket_name, _object_name, _options = {}) ⇒ Object
77
78
79
80
81
|
# File 'lib/fog/storage/google_json/requests/get_object.rb', line 77
def get_object(_bucket_name, _object_name, _options = {})
Fog::Mock.not_implemented
end
|
#get_object_acl(_bucket_name, _object_name) ⇒ Object
27
28
29
30
31
|
# File 'lib/fog/storage/google_json/requests/get_object_acl.rb', line 27
def get_object_acl(_bucket_name, _object_name)
Fog::Mock.not_implemented
end
|
24
25
26
27
28
|
# File 'lib/fog/storage/google_json/requests/get_object_metadata.rb', line 24
def get_object_metadata(_bucket_name, _object_name, _options = {})
Fog::Mock.not_implemented
end
|
#get_object_url(bucket_name, object_name, expires, options = {}) ⇒ Object
14
15
16
17
|
# File 'lib/fog/storage/google_json/requests/get_object_url.rb', line 14
def get_object_url(bucket_name, object_name, expires, options = {})
Fog::Logger.deprecation("Fog::Storage::Google => #get_object_url is deprecated, use #get_object_https_url instead[/] [light_black](#{caller(0..0)})")
get_object_https_url(bucket_name, object_name, expires, options)
end
|
#google_access_id ⇒ Object
21
22
23
|
# File 'lib/fog/storage/google_json/mock.rb', line 21
def google_access_id
"[email protected]"
end
|
#list_bucket_acl(_bucket_name) ⇒ Object
18
19
20
21
22
|
# File 'lib/fog/storage/google_json/requests/list_bucket_acl.rb', line 18
def list_bucket_acl(_bucket_name)
Fog::Mock.not_implemented
end
|
#list_buckets ⇒ Object
24
25
26
27
28
|
# File 'lib/fog/storage/google_json/requests/list_buckets.rb', line 24
def list_buckets
Fog::Mock.not_implemented
end
|
#list_object_acl(_bucket_name, _object_name) ⇒ Object
21
22
23
24
25
|
# File 'lib/fog/storage/google_json/requests/list_object_acl.rb', line 21
def list_object_acl(_bucket_name, _object_name)
Fog::Mock.not_implemented
end
|
#list_objects(_bucket, _options = {}) ⇒ Object
40
41
42
43
44
|
# File 'lib/fog/storage/google_json/requests/list_objects.rb', line 40
def list_objects(_bucket, _options = {})
Fog::Mock.not_implemented
end
|
#put_bucket(_bucket_name, _options = {}) ⇒ Object
34
35
36
37
38
|
# File 'lib/fog/storage/google_json/requests/put_bucket.rb', line 34
def put_bucket(_bucket_name, _options = {})
Fog::Mock.not_implemented
end
|
#put_bucket_acl(_bucket_name, _acl) ⇒ Object
21
22
23
24
25
|
# File 'lib/fog/storage/google_json/requests/put_bucket_acl.rb', line 21
def put_bucket_acl(_bucket_name, _acl)
Fog::Mock.not_implemented
end
|
#put_object(_bucket_name, _object_name, _data, _options = {}) ⇒ Object
94
95
96
97
98
|
# File 'lib/fog/storage/google_json/requests/put_object.rb', line 94
def put_object(_bucket_name, _object_name, _data, _options = {})
Fog::Mock.not_implemented
end
|
#put_object_acl(_bucket_name, _object_name, _acl) ⇒ Object
27
28
29
30
31
|
# File 'lib/fog/storage/google_json/requests/put_object_acl.rb', line 27
def put_object_acl(_bucket_name, _object_name, _acl)
Fog::Mock.not_implemented
end
|
#put_object_url(bucket_name, object_name, expires, headers = {}) ⇒ Object
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/fog/storage/google_json/requests/put_object_url.rb', line 29
def put_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 => "PUT",
:path => "#{bucket_name}/#{object_name}"
}, expires)
end
|
#signature(_params) ⇒ Object
17
18
19
|
# File 'lib/fog/storage/google_json/mock.rb', line 17
def signature(_params)
"foo"
end
|