Class: Twilio::REST::Iam::V1::OAuthAppList::IamV1AccountVendorOauthAppUpdateRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ IamV1AccountVendorOauthAppUpdateRequest

Returns a new instance of 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_ttlObject

Parameters:



59
60
61
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59

def access_token_ttl
  @access_token_ttl
end

#descriptionObject

Parameters:



59
60
61
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59

def description
  @description
end

#friendly_nameObject

Parameters:



59
60
61
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59

def friendly_name
  @friendly_name
end

#policyObject

Parameters:



59
60
61
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 59

def policy
  @policy
end

#typeObject

Parameters:



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(options = {})
{
        "type": @type,
        "friendly_name": @friendly_name,
        "description": @description,
        "policy": @policy,
        "access_token_ttl": @access_token_ttl,
}.to_json(options)
end