Class: Twilio::REST::Webhooks::V1::SettingList::InlineAuthValue

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/webhooks/v1/setting.rb,
lib/twilio-ruby/rest/webhooks/v1/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ InlineAuthValue

Returns a new instance of InlineAuthValue.



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 33

def initialize(payload)
        @scheme = payload["scheme"]
        @token_url = payload["token_url"]
        @client_id = payload["client_id"]
        @client_secret = payload["client_secret"]
        @scope = payload["scope"]
        @audience = payload["audience"]
        @client_credentials_auth_method = payload["client_credentials_auth_method"]
        @username = payload["username"]
        @password = payload["password"]
end

Instance Attribute Details

#audience ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def audience
  @audience
end

#client_credentials_auth_method ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def client_credentials_auth_method
  @client_credentials_auth_method
end

#client_id ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def client_id
  @client_id
end

#client_secret ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def client_secret
  @client_secret
end

#password ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def password
  @password
end

#scheme ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def scheme
  @scheme
end

#scope ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def scope
  @scope
end

#token_url ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def token_url
  @token_url
end

#username ⇒ Object

Parameters:

  • : (scheme) —

    [String]

  • : (token_url) —

    [String] OAuth2 token endpoint URL

  • : (client_id) —

    [String] OAuth2 client identifier

  • : (client_secret) —

    [String] OAuth2 client secret (write-only, never returned)

  • : (scope) —

    [String] OAuth2 scope to request

  • : (audience) —

    [String] OAuth2 audience parameter

  • : (client_credentials_auth_method) —

    [String] Client credentials authentication method (defaults to CLIENT_SECRET_POST)

  • : (username) —

    [String]

  • : (password) —

    [String] Password (write-only, never returned)



32
33
34
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 32

def username
  @username
end

Instance Method Details

#to_json(options = {}) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 44

def to_json(options = {})
{
        "scheme": @scheme,
        "tokenUrl": @token_url,
        "clientId": @client_id,
        "clientSecret": @client_secret,
        "scope": @scope,
        "audience": @audience,
        "clientCredentialsAuthMethod": @client_credentials_auth_method,
        "username": @username,
        "password": @password,
}.to_json(options)
end