Class: Aliyun::Log::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/aliyun/log/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Client

Returns a new instance of Client.



6
7
8
9
# File 'lib/aliyun/log/client.rb', line 6

def initialize(config = {})
  @config = Config.new(config)
  @protocol = Protocol.new(@config)
end

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