Class: Twilio::REST::Oauth::V2::OauthAuthorizationServerInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ OauthAuthorizationServerInstance

Initialize the OauthAuthorizationServerInstance

Parameters:

  • version (Version) —

    Version that contains the resource

  • payload (Hash) —

    payload that contains response from Twilio

  • account_sid (String) —

    The SID of the Account that created this OauthAuthorizationServer resource.

  • sid (String) —

    The SID of the Call resource to fetch.



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 125

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'issuer' => payload['issuer'],
        'authorization_endpoint' => payload['authorization_endpoint'],
        'token_endpoint' => payload['token_endpoint'],
        'response_types_supported' => payload['response_types_supported'],
        'grant_types_supported' => payload['grant_types_supported'],
        'code_challenge_methods_supported' => payload['code_challenge_methods_supported'],
        'token_endpoint_auth_methods_supported' => payload['token_endpoint_auth_methods_supported'],
    }
end

Instance Method Details

#authorization_endpoint ⇒ String

Returns:

  • (String)


150
151
152
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 150

def authorization_endpoint
    @properties['authorization_endpoint']
end

#code_challenge_methods_supported ⇒ Array<String>

Returns:

  • (Array<String>)


174
175
176
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 174

def code_challenge_methods_supported
    @properties['code_challenge_methods_supported']
end

#grant_types_supported ⇒ Array<String>

Returns:

  • (Array<String>)


168
169
170
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 168

def grant_types_supported
    @properties['grant_types_supported']
end

#inspect ⇒ Object

Provide a detailed, user friendly representation



192
193
194
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 192

def inspect
    "<Twilio.Oauth.V2.OauthAuthorizationServerInstance>"
end

#issuer ⇒ String

Returns:

  • (String)


144
145
146
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 144

def issuer
    @properties['issuer']
end

#response_types_supported ⇒ Array<String>

Returns:

  • (Array<String>)


162
163
164
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 162

def response_types_supported
    @properties['response_types_supported']
end

#to_s ⇒ Object

Provide a user friendly representation



186
187
188
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 186

def to_s
    "<Twilio.Oauth.V2.OauthAuthorizationServerInstance>"
end

#token_endpoint ⇒ String

Returns:

  • (String)


156
157
158
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 156

def token_endpoint
    @properties['token_endpoint']
end

#token_endpoint_auth_methods_supported ⇒ Array<String>

Returns:

  • (Array<String>)


180
181
182
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 180

def token_endpoint_auth_methods_supported
    @properties['token_endpoint_auth_methods_supported']
end