Class: Twilio::REST::Iam::V1::OAuthAppList::IamV1AccountVendorOauthAppUpdateRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Iam::V1::OAuthAppList::IamV1AccountVendorOauthAppUpdateRequest
- 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
- #description ⇒ Object
- #friendly_name ⇒ Object
- #policy ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ IamV1AccountVendorOauthAppUpdateRequest
constructor
A new instance of IamV1AccountVendorOauthAppUpdateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ IamV1AccountVendorOauthAppUpdateRequest
60 61 62 63 64 65 66 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 60 def initialize(payload) @type = payload["type"] @friendly_name = payload["friendly_name"] @description = payload["description"] @policy = payload["policy"] @access_token_ttl = payload["access_token_ttl"] end |
Instance Attribute Details
#access_token_ttl ⇒ Object
59 60 61 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59 def access_token_ttl @access_token_ttl end |
#description ⇒ Object
59 60 61 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59 def description @description end |
#friendly_name ⇒ Object
59 60 61 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59 def friendly_name @friendly_name end |
#policy ⇒ Object
59 60 61 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59 def policy @policy end |
#type ⇒ Object
59 60 61 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
67 68 69 70 71 72 73 74 75 |
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 67 def to_json( = {}) { "type": @type, "friendly_name": @friendly_name, "description": @description, "policy": @policy, "access_token_ttl": @access_token_ttl, }.to_json() end |