Class: Twilio::REST::Iam::V1::OAuthAppList::IamV1AccountVendorOauthAppCreateRequest

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) ⇒ 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_ttlObject

Parameters:



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_sidObject

Parameters:



30
31
32
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30

def client_sid
  @client_sid
end

#descriptionObject

Parameters:



30
31
32
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30

def description
  @description
end

#friendly_nameObject

Parameters:



30
31
32
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30

def friendly_name
  @friendly_name
end

#owner_sidObject

Parameters:



30
31
32
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30

def owner_sid
  @owner_sid
end

#policyObject

Parameters:



30
31
32
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 30

def policy
  @policy
end

#typeObject

Parameters:



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(options = {})
{
        "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(options)
end