Class: Twilio::REST::Iam::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Iam::V1
show all
- Defined in:
- lib/twilio-ruby/rest/iam/v1.rb,
lib/twilio-ruby/rest/iam/v1/token.rb,
lib/twilio-ruby/rest/iam/v1/api_key.rb,
lib/twilio-ruby/rest/iam/v1/o_auth_app.rb,
lib/twilio-ruby/rest/iam/v1/new_api_key.rb,
lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
Defined Under Namespace
Classes: ApiKeyContext, ApiKeyInstance, ApiKeyList, ApiKeyPage, GetApiKeysInstance, GetApiKeysList, GetApiKeysPage, NewApiKeyInstance, NewApiKeyList, NewApiKeyPage, OAuthAppContext, OAuthAppInstance, OAuthAppList, OAuthAppPage, TokenInstance, TokenList, TokenPage
Instance Attribute Summary
Attributes inherited from Version
#domain
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #patch, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Iam
21
22
23
24
25
26
27
28
29
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 21
def initialize(domain)
super
@version = 'v1'
@api_key = nil
@get_api_keys = nil
@new_api_key = nil
@o_auth_apps = nil
@token = nil
end
|
Instance Method Details
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 35
def api_key(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@api_key ||= ApiKeyList.new self
else
ApiKeyContext.new(self, sid)
end
end
|
47
48
49
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 47
def get_api_keys
@get_api_keys ||= GetApiKeysList.new self
end
|
52
53
54
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 52
def new_api_key
@new_api_key ||= NewApiKeyList.new self
end
|
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 59
def o_auth_apps(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@o_auth_apps ||= OAuthAppList.new self
else
OAuthAppContext.new(self, sid)
end
end
|
#to_s ⇒ Object
Provide a user friendly representation
76
77
78
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 76
def to_s
'<Twilio::REST::Iam::V1>';
end
|
71
72
73
|
# File 'lib/twilio-ruby/rest/iam/v1.rb', line 71
def token
@token ||= TokenList.new self
end
|