Class: Twilio::REST::Iam::V1::OAuthAppList::IamV1AccountVendorOauthAppCreateRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Iam::V1::OAuthAppList::IamV1AccountVendorOauthAppCreateRequest
- Defined in:
- lib/twilio-ruby/rest/iam/v1/o_auth_app.rb,
lib/twilio-ruby/rest/iam/v1/o_auth_app.rb
Instance Attribute Summary collapse
- #access_token_ttl ⇒ Object
- #client_sid ⇒ Object
- #description ⇒ Object
- #friendly_name ⇒ Object
- #owner_sid ⇒ Object
- #policy ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ IamV1AccountVendorOauthAppCreateRequest
constructor
A new instance of IamV1AccountVendorOauthAppCreateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ IamV1AccountVendorOauthAppCreateRequest
Returns a new instance of IamV1AccountVendorOauthAppCreateRequest.
31 32 33 34 35 36 37 38 39 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 31 def initialize(payload) @type = payload["type"] @friendly_name = payload["friendly_name"] @owner_sid = payload["owner_sid"] @description = payload["description"] @client_sid = payload["client_sid"] @policy = payload["policy"] @access_token_ttl = payload["access_token_ttl"] end |
Instance Attribute Details
#access_token_ttl ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def access_token_ttl @access_token_ttl end |
#client_sid ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def client_sid @client_sid end |
#description ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def description @description end |
#friendly_name ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def friendly_name @friendly_name end |
#owner_sid ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def owner_sid @owner_sid end |
#policy ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def policy @policy end |
#type ⇒ Object
30 31 32 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 40 def to_json( = {}) { "type": @type, "friendly_name": @friendly_name, "owner_sid": @owner_sid, "description": @description, "client_sid": @client_sid, "policy": @policy, "access_token_ttl": @access_token_ttl, }.to_json() end |