Class: ApiGW::Iam

Inherits:
ApiBase show all
Defined in:
lib/apigw/iam.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApiBase

#initialize

Constructor Details

This class inherits a constructor from ApiGW::ApiBase

Class Method Details

.api_nameObject



6
7
8
# File 'lib/apigw/iam.rb', line 6

def api_name
  'iam'
end

.require_authorization?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/apigw/iam.rb', line 10

def require_authorization?
  true
end

Instance Method Details

#delete(path) ⇒ Object



30
31
32
# File 'lib/apigw/iam.rb', line 30

def delete(path)
  delete_request path
end

#get(path, opts = {}) ⇒ Object



15
16
17
# File 'lib/apigw/iam.rb', line 15

def get(path, opts = {})
  get_request path, opts
end

#post(path, data) ⇒ Object



19
20
21
22
23
24
# File 'lib/apigw/iam.rb', line 19

def post(path, data)
  opts_copy = {}
  opts_data = opts_copy[:data] || {}
  opts_copy[:data] = data
  post_request path, opts_copy
end

#put(path) ⇒ Object



26
27
28
# File 'lib/apigw/iam.rb', line 26

def put(path)
  put_request path
end