Class: Aliyun::Log::Client
- Inherits:
-
Object
- Object
- Aliyun::Log::Client
- Defined in:
- lib/aliyun/log/client.rb
Instance Method Summary collapse
- #create_project(name, desc) ⇒ Object
- #delete_project(name) ⇒ Object
- #get_logstore(project_name, logstore_name) ⇒ Object
- #get_project(name) ⇒ Object
-
#initialize(config = {}) ⇒ Client
constructor
A new instance of Client.
- #list_projects(size = nil, offset = nil) ⇒ Object
- #projects(size = nil, offset = nil) ⇒ Object
- #update_project(name, desc) ⇒ Object
Constructor Details
Instance Method Details
#create_project(name, desc) ⇒ Object
23 24 25 |
# File 'lib/aliyun/log/client.rb', line 23 def create_project(name, desc) @protocol.create_project(name, desc) end |
#delete_project(name) ⇒ Object
31 32 33 |
# File 'lib/aliyun/log/client.rb', line 31 def delete_project(name) @protocol.delete_project(name) end |
#get_logstore(project_name, logstore_name) ⇒ Object
35 36 37 |
# File 'lib/aliyun/log/client.rb', line 35 def get_logstore(project_name, logstore_name) @protocol.get_logstore(project_name, logstore_name) end |
#get_project(name) ⇒ Object
19 20 21 |
# File 'lib/aliyun/log/client.rb', line 19 def get_project(name) @protocol.get_project(name) end |
#list_projects(size = nil, offset = nil) ⇒ Object
11 12 13 |
# File 'lib/aliyun/log/client.rb', line 11 def list_projects(size = nil, offset = nil) @protocol.list_projects(size, offset) end |
#projects(size = nil, offset = nil) ⇒ Object
15 16 17 |
# File 'lib/aliyun/log/client.rb', line 15 def projects(size = nil, offset = nil) @protocol.projects(size, offset) end |
#update_project(name, desc) ⇒ Object
27 28 29 |
# File 'lib/aliyun/log/client.rb', line 27 def update_project(name, desc) @protocol.update_project(name, desc) end |